mirror of
https://github.com/hi-language/hi-language.github.io.git
synced 2026-01-14 16:48:37 +00:00
Update index.html
This commit is contained in:
@@ -142,8 +142,8 @@ Since a Block is just a sequence of expressions, data and behavior can be combin
|
|||||||
\`\`\`javascript
|
\`\`\`javascript
|
||||||
counter: {
|
counter: {
|
||||||
#value: 0 // Data declaration
|
#value: 0 // Data declaration
|
||||||
inc: { #value = #value + 1 } // Behavior
|
inc: { value = value + 1 } // Behavior
|
||||||
get: { #value } // Behavior
|
get: { value } // Behavior
|
||||||
}
|
}
|
||||||
|
|
||||||
counter.inc()
|
counter.inc()
|
||||||
|
|||||||
Reference in New Issue
Block a user