About Lesson
Conditional statements are used to perform different actions based on different conditions.
if
(condition) {
// block of code to be executed if the condition is true
}
Conditional statements are used to perform different actions based on different conditions.
if
(condition) {
// block of code to be executed if the condition is true
}