+ 3
how can I fix this if I want to add something its takes as string not no. plz tell
4 Respostas
+ 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));
+ 4
Try this
var x= +user1 + +user2;
+ 2
Try this
var x= +user1 + +user2;
how bro
+ 2
and what are parselnt() or parseFloat() function and what are they