Computer Science, asked by Sana8154, 9 months ago

Who to write if statement in java script

Answers

Answered by queensp73
0

Answer:

In JavaScript we have the following conditional statements:

Use if to specify a block of code to be executed, if a specified condition is true.

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.

Explanation:

hope it helps u

:)

Answered by abheergoel10
1

Answer:

a = 0

if (a === 0){

   <statement>

}

else{

   <statement 2>

}

Explanation:

Hope it helps. Please make me brainliest.

Similar questions