Syntax basics
Computer Science · JavaScript
Loading practice question…
About this practice set
Syntax basics is part of Computer Science (JavaScript). Questions are generated with new numbers each time you practise. Levels available: Easy. After you answer, an explanation is shown.
Example questions
A taste of what you will practise. Answers are revealed after you try.
Easy
Which of these is a valid JavaScript statement?
- let x = 5;
- int x = 5
- var x = 5 (no semicolon needed in blocks)
- x := 5