mirror of
https://github.com/hi-language/hi-language.github.io.git
synced 2026-01-14 00:28:05 +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
|
||||
counter: {
|
||||
#value: 0 // Data declaration
|
||||
inc: { #value = #value + 1 } // Behavior
|
||||
get: { #value } // Behavior
|
||||
inc: { value = value + 1 } // Behavior
|
||||
get: { value } // Behavior
|
||||
}
|
||||
|
||||
counter.inc()
|
||||
|
||||
Reference in New Issue
Block a user