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

https://github.com/mnikander/leetcode_typescript

Learning TypeScript via leetcode exercises
https://github.com/mnikander/leetcode_typescript

Last synced: 10 months ago
JSON representation

Learning TypeScript via leetcode exercises

Awesome Lists containing this project

README

          

# Learning TypeScript

A collection of leetcode solutions in TypeScript.
These are mostly ported from my corresponding JavaScript repository.
The emphasis is NOT on efficient solutions, but on learning the basics of TypeScript.

## Getting started

Install system dependencies:
```bash
sudo apt install nodejs npm
```

Clone, build, and run:
```bash
git clone ... # this repo
cd leetcode_typescript
npx tsc hello_world.ts # compile the hello world example
node build/hello_world.js # run the hello world example
npm test # execute unit tests
npm test -- --coverage # check the test coverage
```

## Learning resources
- [W3 schools TypeScript tutorial](https://www.w3schools.com/typescript/index.php)