An open API service indexing awesome lists of open source software.

https://github.com/andrekovac/javascript-typescript-exercises


https://github.com/andrekovac/javascript-typescript-exercises

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# JavaScript & TypeScript Exercises

## JavaScript

### [playground_01.js](./playground_01.js )

**Topics**:

- `var`/`let`/`const`
- nullish coalescing operator (`??`) and optional chaining operator (`?.`)
- spread operator
- implicit type coercion

### [playground_02.js](./playground_02.js )

**Topics**:

- shallow and deep copies explained in a visual format:

![JavaScript-refs-and-copies](https://user-images.githubusercontent.com/1945462/148828194-08d03992-e7ba-4e3f-ae3b-af026ad44d91.png)

- `reduce` function
- Promises and async/await

## TypeScript

- See how TypeScript code gets compiled to JavaScript (see [compiled/playground.js](./compiled/playground.js))
- Explore some interesting TypeScript properties.