Podcast
Questions and Answers
What is the correct way to declare a variable in JavaScript?
What is the correct way to declare a variable in JavaScript?
- let x = 5;
- variable x = 5;
- v x = 5;
- var x = 5; (correct)
Which of the following is a correct way to write a comment in JavaScript?
Which of the following is a correct way to write a comment in JavaScript?
- ## This is a comment
- // This is a comment (correct)
- /* This is a comment */
What does the '=== 'operator do in JavaScript?
What does the '=== 'operator do in JavaScript?
- Performs addition
- Checks for strict equality (correct)
- Assigns a value to a variable
- Checks for type conversion
Flashcards are hidden until you start studying