mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Implemented typeof and added resetInterpreter()
This commit is contained in:
@@ -49,6 +49,7 @@ The following list of keywords cannot be used as names, due to their significanc
|
||||
* string
|
||||
* true
|
||||
* type
|
||||
* typeof
|
||||
* var
|
||||
* while
|
||||
|
||||
@@ -163,11 +164,7 @@ var bar = "hello world";
|
||||
var buzz;
|
||||
```
|
||||
|
||||
Variables can be used in place of values at any time, and can be altered and re-assigned. Multiple variables (which have been previously declared) can be assigned to the same value:
|
||||
|
||||
```
|
||||
a = b = c = 1;
|
||||
```
|
||||
Variables can be used in place of values at any time, and can be altered and re-assigned.
|
||||
|
||||
## If-Else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user