must be used in assignments: let x = 0;
° The keyword do:
must be used for calling a method or a function outside an expression:
do reduce();
° The body of a statement must be within curly brackets, even if it
contains a single statement: if (a > a) {return 3} else {return -a};
° All subroutine must end with a return
° N0 operator priority:
-- The following value if unpredictable: 2 + 3 * 4
-- To enforce priority of operations, use parentheses: 2 + (3 * 4)
° The language is weakly typed
No comments:
Post a Comment