mirror of
https://github.com/hi-language/hi-language.github.io.git
synced 2026-01-13 16:18:04 +00:00
Update index.html
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user