+ 1
https://code.sololearn.com/WJ2K6AxfIf1h/?ref=app Hello fam! Please how do i convert my answer to numbers and not strings
Javascript Dom manipulation https://www.sololearn.com/discuss/2306572/?ref=app https://code.sololearn.com/WJ2K6AxfIf1h/?ref=app
2 Answers
+ 1
You have to parse them individually.
eval(parseInt(me) + parseInt(we))
+ 2
You are use parseInt()
Example:
var answer = parseInt(prompt("Your Question"));