Comment déclarer un booléen en dactylographie
let isDone: boolean = false;
Nervous Nightingale
let isDone: boolean = false;
let name: string; // stores text
let age: number; // stores numbers
let isMale: boolean; // stores a true or false values
let typeAny: any; // stores any type of value
let typeNull: null = null; // can only store a null value
let typeUndefined: undefined = undefined; // can only store undefined value
// these are the basic types of variables in TypeScript
// and of course you can change let to const
let decimal: number = 6;
let hex: number = 0xf00d;
let binary: number = 0b1010;
let octal: number = 0o744;
let big: bigint = 100n;Try