We want to convert the string "1024"
to type Number and store the result in variable n
. Point out the correct statement
let n = Number("1024");
let n = String("1024");
let n = StringToNumber("1024");
let n = "1024" + 0;
Answers Explanation & Hints:
The correct answer is: let n = Number("1024"); This code converts the string “1024” to a number using the |