17.
Which of the following is the correct way to declare a variable without assigning a value?
const x;
let x;
var x;
const x = null;
Correct: A, B, C
In JavaScript, variables can be declared without assigning a value. This is useful when you want to declare a variable first and assign a value to it later. The correct syntax for declaring a variable without assigning a value is "let/const variableName;". The "var" keyword can also be used, but it is recommended to use "let" or "const" for better scoping. The option "const x = null" declares a constant variable and assigns a null value to it, which is not the same as declaring a variable without assignment.