Basic
Sensitive case
That makes the language clearer, and the implementation is easier.
We recommend to use camel case while coding.
Keywords
Keywords or reserved words are special identifiers that cannot use for variable or property name.
Totally, we have 20 keywords:
break, continue is used to handle loop control flow
class for declaring a class
for, while are used for loop
func for declaring a function
if, else are used to control if statement
null represents null value
puts is used for a special statment, that will print to console
return is used to return from a function
this for accessing member of a class
true, false are used to create boolean value
try, catch, throw are used to handle exception
use for using a module
var, let for declaring variables
TODO
Comments
Single line comments
// This is a single line commentMultiple lines comments
/*
This is a
multi-line
comment :)
*/No semicolon
Yeah, our language has no semicolon.
Please pay attention what you wrote.
var a = 5
+ 6 // Syntax error
var b = 5 +
6 // OKLast updated
Was this helpful?