scrimba
Introduction to TypeScript
TypeScript: Implicit vs Explicit Typing
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

TypeScript: Implicit vs Explicit Typing
AboutCommentsNotes
TypeScript: Implicit vs Explicit Typing
Expand for more info
index.ts
run
preview
console
const arrayExample = [1, 3, 4, 5];

let example1: boolean | number = 35;

let example2: number;

let example3: string = 'Hello world';

let example4: undefined = undefined;

let example5: null = null;
Console
index.html
-1:58