#9 - IF AND ELSE STATEMENTS IN JAVASCRIPT | JAVASCRIPT TUTORIALS IN HINDI

Опубликовано: 28 Октябрь 2024
на канале: CODERS NEVER QUIT
1,146
20

Use the if statement to specify a block of JavaScript code to be executed if a condition is true.Use the else statement to specify a block of code to be executed if the condition is false.
STYTAX-
if (condition) {
block of code to be executed if the condition is true
} else {
block of code to be executed if the condition is false
}