Skip to main content

Variables

As of Embr v0.10.0, variables are dynamically typed.

Variable Initialization

In Embr, you initialize variables using the following pattern: var <name> = <value>.

Syntax

Variable initialization:

var my_integer = 42069;

Data Types

Currently, Embr supports four basic data types: integers, booleans, strings, and arrays.

Examples

Declaring some variables with initial values:

var weed_number = 420;
var sex_number = 69;
var is_hungry = true;
var hello_world = "Hello, Embr!";
var my_arr = [weed_number, sex_number, is_hungry, hello_world];