JAVASCRIPT · ОСНОВЫ · LESSON 07
If not.
if and else · about 12 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Type an example manually. Check the names, brackets and signs.
const points = 7;
if (points >= 5) {
console.log("Супер");
} else {
console.log("Попробуй ещё");
}Open the editor for class workSolve it yourself
Create const score = 3. If score is at least 5, output «Сдано», otherwise «Тренируйся».
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework