on-internet
← Community

Converting String to Number in JavaScript

Stack Overflow ·

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.