TypeScript Integer
// There is no int type, use number
const myInt: number = 17;
const myDecimal: number = 17.5;
Arrogant Ape
// There is no int type, use number
const myInt: number = 17;
const myDecimal: number = 17.5;
let list: number[] = [1, 2, 3];
let decimal: number = 6;
let hex: number = 0xf00d;
let binary: number = 0b1010;
let octal: number = 0o744;
let big: bigint = 100n;Try