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
- 06: Sets
- 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
testdirectory) - 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 installto install all depencies - To see the examples, run
http-server htmlornpm run serve. Open your browserhttp:\\localhost:8080to see the book examples - Or
cd html/chapter01and 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.htmlfile to easily nagivate through all examples:
Happy Coding!
