Why making:
var x = prompt(“give a value”)
x = parseInt(x)
var y = x*2
Is similar to do
var x = prompt(“give a value”)
var y = x*2
So why we can do the multiplication without making the conversion.
Why making:
var x = prompt(“give a value”)
x = parseInt(x)
var y = x*2
Is similar to do
var x = prompt(“give a value”)
var y = x*2
So why we can do the multiplication without making the conversion.