From 95b6f6d972d38680a964e3c2ec7fac66c28e8eb0 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Mon, 22 Sep 2025 13:47:48 -0700 Subject: [PATCH] Update index.html --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 355767f..94ad619 100644 --- a/index.html +++ b/index.html @@ -217,7 +217,7 @@ This structure is powerful because it's an *expression* that always evaluates to result: (1 > 2) ? { "A" } : { "B" } // result is "B" \`\`\` -If a condition is false and no \`else\` branch is provided, the expression evaluates to \`-0\` (null). Expressions can be chained to create \`if / else if / else\` logic. +Expressions can be chained to create \`if / else if / else\` logic. \`\`\`javascript // if / else if / else @@ -229,6 +229,8 @@ grade: (score >= 90) ? { "A" } _(grade) // Prints "C" \`\`\` +If a condition is false and no \`else\` branch is provided, the expression evaluates to \`-0\` (null). + ## Data Structures ### Arrays