Source code of Learning JavaScript Data Structures and Algorithms book, third edition.
Work in Progress.
- 01: JavaScript, ECMAScript and TypeScript: a quick overview
- 02: Arrays
- 03: Stacks
- 04: Queues and Deques
- 05: LinkedLists
- Algorithms using ES2015+ (ES6+)
- New data structures and algorithms
- All chapters rewritten and reviewed
- Three (3) new chapters
- Creation of a Data Structures and Algorithms library that can be used in the browser or with Node.js
- Algorithms tested with Mocha + Chai (test code available in
test
directory) - TypeScript version of the source code included (library and tests)
- Install Node
- Open terminal/cmd and change directoty to this project folder:
cd /Users/.../javascript-datastructures-algorithms
(Linux/Max) orcd C:/.../javascript-datastructures-algorithms
- run
npm install
to install all depencies - To see the examples, run
http-server html
ornpm run serve
. Open your browserhttp:\\localhost:8080
to see the book examples - Or
cd html/chapter01
and run each javascript file with node:node 02-Variables
-
Right click on the html file you would like to see the examples, right click and 'Open with Chrome (or any other browser)'
-
Or open the
examples/index.html
file to easily nagivate through all examples:
Happy Coding!