- Email me for an invite to Slack, to compare/talk about our answers and ask questions. Join our Slack channels #eloquentjavascript, #introduce-yourself, and #job-search.
- Install Homebrew, Node (with nvm), Yarn (step 4), Jest (step 4), and ESLint (step 5).
- Our goals.
- How to create and run Jest tests. How to install Yarn and Jest. Also follow this Jest setup.
- Installing ESLint: Part 1. Part 2.
- Using the interactive Node terminal (REPL) to develop algorithms.
- The best code editor I've ever used is VS Code. I prefer you use it to code. Set it up with Node. My
launch.json
file and all my advice teaches you to use VS Code most effectively. How to debug in Node. How to set breakpoints in VS Code and stop your Jest tests on certain lines.
This is how you should write code professionally, with Test-Driven Development (with a test framework like Jest), linting (with ESLint), and playing in an interactive terminal (REPL) to figure out the right algorithm. If you can do all this consistently, you're more likely to be hired as a software engineer.
Homework/example problems from all 21 chapters of the book Eloquent JavaScript.
I put Jest software tests and code in same files, ending with .test.js
To run tests: yarn test
If you finish this book, you'll build these 5 awesome projects you could put on your resume:
- A robot
- Your own programming language
- A platform game
- A pixel art editor (like Microsoft Paint)
- A skill-sharing website
Who wants to finish all 21 chapters with us? Please don't view my solutions before trying your own.
By Raymond Gan