TypeScript 3.7 - Optional chaining and nullish coalescing
node
>= v10npm
>= v5
Install dependencies.
npm install
Compile TypeScript code.
npm run build
Ensure that VSCode uses TypeScript 3.7.
Execute nullish-coalescing.js
.
node build/nullish-coalescing.js
Execute optional-chaining.js
.
node build/optional-chaining.js