27rohitb.github.io

Basics

Datatypes:

Quick 4:

NOTE:

Determine type

typeof()

String functions:

Essentially its a container of chars.

Concatenate any number of strings

a * b

if-else

if (x > 0) && (y > 0)
   println("x AND Y is positive")
elseif (x < 0) || (y <0)
   println("x OR y is NEG")
else
   println("x is NOT positive")
end

Ternary Operator:

x <conditional operation> ? <TRUE clause> : <FALSE clause>
x > 0 ? println("is POS") : println("not positive")