Back to Lesson # 6 - Data Types and Operators | Table of Contents | # 6 Assignment |
3. What is the value of var someString after the following statements?
var someString="Hasta La Vista";
someString +="Baby";
5. What is the output?
var userPassword = "Guest";
var count = userPassword.length();
alert( count );
6. What is the output?
var myCar="Corvette 1953 ";
alert( myCar.substring(9,4) );
7. Since both text boxes and the prompt() method store data as strings, how could we convert the string "1953" to a number?