JavaScript - Programming Language (MCQ) questions for Q. 27540

Q.  Which of the following is the structure of an if statement?
- Published on 26 Feb 17

a. if (conditional expression is true) thenexecute this codeend if
b. if (conditional expression is true)execute this codeend if
c. if (conditional expression is true)   {then execute this code>->}
d. if (conditional expression is true) then {execute this code}

ANSWER: if (conditional expression is true)   {then execute this code>->}

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)