Simple If-Else Control Flow
Control flow allows your program to make decisions. The 'if' block runs only if the condition in parentheses is true; otherwise, the 'else' block runs.
const score = 85;if (score > 50) {console.log("Passed!");} else {console.log("Try again.");}