Run ❯
Get your
own Node
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
const numbers = [1, 2, 3]; // inferred to type number[] numbers.push(4); // no error // comment line below out to see the successful assignment // numbers.push("2"); // Error: Argument of type 'string' is not assignable to parameter of type 'number'. let head: number = numbers[0]; // no error console.log(head);
1