JS

JavaScript Fundamentals 2 - Syntax of an if statem...

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 }