Skip to content
Spotandjake edited this page Jul 8, 2021 · 1 revision

Keywords

  • Module Linking
    • import
    • from
    • export
  • Primitive Types
    • Boolean
    • Number
    • String
    • Function
    • Void
  • Decelerators
    • let
  • General
    • return

Declaring variables

Grammar

let identifier: type = value;

booleans

let _true: Boolean = true;
let _false: Boolean = false;

numbers

let _number: Number = 1;

strings

let _string: String = 'define string';

Functions

let _function: Function = (x: Number, y: Number): Number => {
  return(x);
};

comments

// this is a comment

Module Linking

Import

import add from 'add.br';

Export

export add;
Clone this wiki locally