I have a valid css class name like obj2
I want to use the parseInt() function which gives me: NaN
Now I want to change the position of the letters and numbers that I get: 2obj
How do I accomplish this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Classes can’t start with a number.
But you can in JS:
Now:
number is String("2")andparseFloat(number) is Number(2)