i32

let n: i32 = 12.

let n: i32 = 12.

Goal

Log Nairobi units as i32.

@external("env", "log")
declare function log(n: i32): void;

@external("env", "logStr")
declare function logStr(s: string): void;

export function main(): void {
  let n: i32 = 12;
  log(n);
}
@external("env", "log")
declare function log(n: i32): void;

@external("env", "logStr")
declare function logStr(s: string): void;

export function main(): void {
  const price: i32 = 40;
  log(price);
}
@external("env", "log")
declare function log(n: i32): void;

@external("env", "logStr")
declare function logStr(s: string): void;

export function main(): void {
  let units: i32 = 8;
  units = units + 1;
  log(units);
}
@external("env", "log")
declare function log(n: i32): void;

@external("env", "logStr")
declare function logStr(s: string): void;

export function main(): void {
  log(5);
}