Froggy Jumps JavaScript BasicsVersion en ligne Test Basic JavaScript knowledge par lexus washington 1 What is the correct way to declare a variable that you can change? a let myName = 'Sloan'; b const myName = 'Sloan'; c variable myName = 'Sloan'; 2 What two values are considered boolean types? a 'true' 'false' b true false c TRUE FALSE 3 What is the correct way to generate a random number? a math.Random() b Number.random() c Math.random() 4 Which of the following lines of code capitalizes every letter in the string `'codecademy'`. a 'codecademy'.toCaps(); b 'codecademy'.toUpperCase(); c 'codecademy'.toUpperCase; 5 Are variables case sensitive in javascript? a Yes b No c None of the above 6 How do you add two numeric values in Javascript? a 5 + 5 b "5 + 5" c "5" + "5" 7 How do you do one line comments in javascript ? a // enter comment here // enter comment2 here b /enter comment here /enter comment2 here c /* enter comment here /* enter comment2 here 8 What Is JavaScript? a JavaScript (or simply JS) is the programming language of the client browser. b JavaScript (or simply JS) is the programming language of the web browser. c JavaScript (or simply JS) is the programming language of server side scripting 9 What date type does a variable value have if you do not assign a value? a none b 2 c undefined 10 What's the code to print in the browser's console? a console.ln("Hello world"); b console.log("Hello world"); c print.log("Hello world");