15.
What is the syntax of an if statement in JavaScript?
if (expression) { code block }
if { expression } then { code block }
if (expression) then { code block }
if { expression } { code block }
Correct: A
The syntax of an if statement in JavaScript is "if (expression) { code block }". The expression is evaluated, and if it is true, the code block inside the curly braces is executed.