Computer Science, asked by ssntoshrajput3011, 4 months ago

explain if else statement with example in javascript​

Answers

Answered by Anonymous
25

Answer:

The if/else statement executes a block of code if a specified condition is true. If the condition is false, another block of code can be executed. ... Use else to specify a block of code to be executed, if the same condition is false. Use else if to specify a new condition to test, if the first condition is false.

Answered by llAmyll
3

Answer:

The if/else statement executes a block of code if a specified condition is true. If the condition is false, another block of code can be executed. ... Use else to specify a block of code to be executed, if the same condition is false. Use else if to specify a new condition to test, if the first condition is false.

Similar questions