+ 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

22nd May 2020, 4:46 PM
Infinite
Infinite - avatar
2 Answers
+ 1
You have to parse them individually. eval(parseInt(me) + parseInt(we))
22nd May 2020, 4:49 PM
Avinesh
Avinesh - avatar
+ 2
You are use parseInt() Example: var answer = parseInt(prompt("Your Question"));
22nd May 2020, 4:52 PM
Josshual A. Toro M.
Josshual A. Toro M. - avatar