0

Convert the string "42" into a number explicitly. I have to do this in javascript. What's the conversion that s the problem

Alesia
  • 13
  • 1

1 Answers1

0

Use the parseInt(); function

var a = parseInt("42")
console.log(a);
BeerusDev
  • 1,444
  • 2
  • 11
  • 30