Converting String to Number in JavaScript
Is there any way to convert a variable from string to number? For example, I have var str = "1"; Can I change it to var str = 1;
0 upvotes
View original discussion ↗
Is there any way to convert a variable from string to number? For example, I have var str = "1"; Can I change it to var str = 1;
Comments
Sign in or sign up to comment and upvote.
No comments yet.