{"id":1098,"date":"2023-05-21T06:11:53","date_gmt":"2023-05-21T06:11:53","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.com\/?p=1098"},"modified":"2023-05-21T06:16:08","modified_gmt":"2023-05-21T06:16:08","slug":"how-can-you-convert-the-string-of-any-base-to-an-integer-in-javascript","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2023\/05\/21\/how-can-you-convert-the-string-of-any-base-to-an-integer-in-javascript\/","title":{"rendered":"How can you convert the string of any base to an integer in JavaScript?"},"content":{"rendered":"\n<p>The parseInt() function is used to convert numbers between different bases. parseInt() takes the string to be converted as its first parameter. The second parameter is the base of the given string.<\/p>\n\n\n\n<p>To convert 4F (or base 16) to integer, the code used will be \u2013<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">parseInt (\"4F\", 16);<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The parseInt() function is used to convert numbers between different bases. parseInt() takes the string&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1098"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=1098"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1098\/revisions"}],"predecessor-version":[{"id":1099,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1098\/revisions\/1099"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=1098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=1098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=1098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}