14.
Which of the following is a basic conditional statement in JavaScript?
if statement
for loop
switch statement
try/catch statement
Correct: A
The if statement is a basic conditional statement in JavaScript that enables us to perform different actions based on different conditions. It evaluates a condition and executes a block of code if the condition is true. If the condition is false, the block of code inside the if statement is not executed.