{"id":1198,"date":"2014-02-20T12:13:23","date_gmt":"2014-02-20T12:13:23","guid":{"rendered":"https:\/\/ibex.tech\/javascript\/?p=1198"},"modified":"2022-02-17T07:14:46","modified_gmt":"2022-02-17T07:14:46","slug":"converting-strings","status":"publish","type":"post","link":"https:\/\/ibex.tech\/javascript\/text\/converting-strings","title":{"rendered":"Converting Strings"},"content":{"rendered":"<h4>\nConvert Value To String<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tvar my_value = 15;\r\n\tvar my_string = my_value.toString();\r\n<\/code><\/pre>\n<h4>\nConvert String To Int<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tvar my_string = &quot;10&quot;;\r\n\tvar my_value = parseInt(my_string);\r\n<\/code><\/pre>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Convert Value To String var my_value = 15; var my_string = my_value.toString(); Convert String To Int var my_string = &quot;10&quot;; var my_value = parseInt(my_string); &nbsp; &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62],"tags":[],"class_list":["post-1198","post","type-post","status-publish","format-standard","hentry","category-text"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/1198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/comments?post=1198"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/1198\/revisions"}],"predecessor-version":[{"id":1201,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/1198\/revisions\/1201"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/media?parent=1198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/categories?post=1198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/tags?post=1198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}