Try your hand at answering the following questions to test your knowledge:
- Which of the following is not a valid JavaScript variable declaration?
- var myVar = 'hello';
- const myVar = "hello"
- String myVar = "hello";
- let myVar = "hello"
- Which of these starts a function declaration?
- function
- const
- func
- def
- Which of these is not a basic loop type?
- for..in
- for
- while
- map
- True or false – JavaScript requires line delineation with semicolons.
- True
- False
- True or false – whitespace never counts in JavaScript.
- True
- False