Question
How can you convert the string of any base to integer in JavaScript?

Answers

The parseInt() function is used to convert numbers between different bases. parseInt() takes the string to be converted as its first parameter, and the second parameter is the base of the given string.
In order to convert 4F (of base 16) to integer, the code used will be –
JavaScript
parseInt ("4F", 16); 1
parseInt ("4F", 16);   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Recoil of a gun is an example of which thing?
  • Q What is GainSpan’s GS2000 Protocol for Internet of Things (IoT)?
  • Q What is Lambda expression? Give complete demo for it.
  • Q IN PACS, “A” stands for
  • Q What's in Windows 98?
  • Q What are your pet peeves?
  • Q What are generics in C#.NET
  • Q Explain the difference between static and dynamic websites?
  • Q Before I leave, is there anything else you need to know concerning my ability to do this job?
  • Q What are the different ways of executing Pig script?
  • Q Who called guru dev 1st time to Rabindranath Tagore?