- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Number.parseInt() function in JavaScript
The parseInt() function of the Number object accepts a string, parses and returns an integer of the specified radix or base.
Syntax
Its Syntax is as follows
Number.parseInt('0xF', 16);
Example
<html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var result = Number.parseInt('0xF', 16); document.write(result); </script> </body> </html>
Output
15
Advertisements