We want to convert the string “1024” to type Number and store the result in variable n. Point out the correct statement:
- let n = StringToNumber(“1024”);
- let n = String(“1024”);
- let n = Number(“1024”);
- let n = “1024” + 0;
More Questions: JavaScript Essentials 1 – JSE1: Module 2 Test
Please login or Register to submit your answer