+ 3

how can I fix this if I want to add something its takes as string not no. plz tell

https://code.sololearn.com/WDVYPHd6okI9/?ref=app

15th Oct 2017, 1:50 PM
Arpan Kanwer
4 Answers
+ 14
parseInt() or parseFloat() are functions which can help you convert the values into integers or floats respectively. For Eg, var user1=parseFloat(prompt("Enter A No. Which Is Multiplied",1));
15th Oct 2017, 2:09 PM
Dev
Dev - avatar
+ 4
Try this var x= +user1 + +user2;
15th Oct 2017, 2:13 PM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
Try this var x= +user1 + +user2; how bro
15th Oct 2017, 2:48 PM
Arpan Kanwer
+ 2
and what are parselnt() or parseFloat() function and what are they
15th Oct 2017, 2:50 PM
Arpan Kanwer