16.
Which of the following is the correct syntax for declaring and assigning a value to a variable in JavaScript?
var x = 5;
int x = 5;
let x = 5;
const x = 5;
Correct: A, C
In JavaScript, variables can be declared and assigned a value using either the "var" or "let" keyword. The correct syntax for declaring and assigning a value to a variable is "var/let variableName = value;". The "const" keyword is used to declare constants, whose values cannot be changed once assigned. The "int" keyword is not valid for variable declaration in JavaScript.