How to convert “20” to number in javascript?
Answer / Vivek Pati Tripathi
You can use the unary plus operator (+) or the `parseInt()` function to convert a string into a number. So, you would write either `+'20'` or `parseInt('20')`. Both will return 20.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain a story about javascript performance problems?
What is an immediately-invoked function expression?
Which is faster jquery or javascript?
What is built in function in javascript?
Where can I learn javascript for free?
What is difference between scripting and programming?
Explain how to detect the operating system on the client machine?
What is closure?
How do you assign object properties?
hello sir my name is naga sekhar i completed my b-tech in 2011 with 61% in IT streme.I completed my core and advanced java coure before 8months back.Still i did not get the job.i tried so many times.and i went to some interviews but no use.now i want to get the job in software sector
How to reload the current page?
Why is my javascript function not defined?