Are you sure you're getting this? Fill in the missing part by typing it in.
In JavaScript, the if-else
statement is used to handle alternative conditions. With if-else
statements, you can define two blocks of code to be executed depending on whether a condition is true or false. The basic syntax of an if-else
statement is as follows:
JAVASCRIPT
1if (condition) {
2 // code to execute if condition is true
3} else {
4 // code to execute if condition is false
5}
In the context of conditional statements, the _____________
block is executed if the condition is false.
Write the missing line below.