/eloquent-js-practice

A collection of exercises, code challenges, and notes as I work through Eloquent JavaScript. A journey to mastering JavaScript fundamentals, one chapter at a time.

Primary LanguageJavaScript

Eloquent JavaScript Exercises πŸ“šπŸ’»

Welcome to my Eloquent JavaScript practice repository! This repo is a collection of exercises, notes, and code challenges as I journey through the book Eloquent JavaScript by Marijn Haverbeke. Each folder represents a chapter of the book, filled with examples and coding challenges to solidify my understanding of JavaScript fundamentals and beyond.

πŸš€ Overview

JavaScript is the language of the web, and Eloquent JavaScript is a fantastic resource to master it. In this repository, you’ll find:

  • Key concepts broken down chapter by chapter.
  • Code snippets that demonstrate important ideas.
  • Challenging exercises and their solutions.
  • My thoughts, notes, and β€œaha!” moments.

πŸ—‚οΈ Project Structure

Here’s how the repository is organized:

eloquent-javascript-exercises/
β”œβ”€β”€ Chapter1-Values, Types, and Operators/
β”‚   └── README.md          # Chapter summary
β”œβ”€β”€ Chapter2-Program-Structure/
β”‚   β”œβ”€β”€ Looping a triangle - Exercise.js
β”‚   β”œβ”€β”€ FizzBuzz - Exercise.js
β”‚   β”œβ”€β”€ Chessboard - Exercise.js
β”‚   └── README.md  # Chapter summary
β”œβ”€β”€ Chapter3-Functions/
β”‚   β”œβ”€β”€ Minimum.js
β”‚   β”œβ”€β”€ Bean counting.js
β”‚   β”œβ”€β”€ Recursion.js
β”‚   └── README.md # Chapter summary
β”œβ”€β”€ ... More chapters ...
└── README.md                 # This readme you're reading right now!

Each chapter has:

  • Concepts: Code examples based on key topics.
  • Challenges: Exercises to practice each chapter’s lessons, along with my solutions.

πŸ“– Table of Contents

  1. Chapter 1: Values, Types, and Operators
  2. Chapter 2: Program Structure
  3. Chapter 3: Functions
  4. Chapter 4: Data Structures
  5. Chapter 5: Higher-Order Functions
  6. Chapter 6: The Secret Life of Objects
  7. Chapter 7: Project - A Robot
  8. … More chapters coming soon …

πŸ› οΈ How to Use

  1. Clone the repo:
git clone https://github.com/yourusername/eloquent-javascript-exercises.git
  1. Navigate to the chapter you’re interested in and explore the code examples or challenges.
  2. Try the challenges by modifying the challenges/ files or adding your own.
  3. Run the code: Each file can be executed in the console using Node.js or directly in the browser’s console.

🧠 Why This Repo Exists

I started this repository to track my progress while reading Eloquent JavaScript and to sharpen my problem-solving skills. By organizing my learnings and exercises here, I can:

  • Reinforce my understanding of JavaScript concepts.
  • Create a reference point I can come back to in the future.
  • Share my work with others who are also learning JavaScript.

🚩 Progress Tracker

  • βœ… Chapter 1: Values, Types, and Operators
  • βœ… Chapter 2: Program Structure
  • βœ… Chapter 3: Functions (In progress)
  • ⬜ Chapter 4: Data Structures (Coming soon)
  • ⬜ … More to come!

πŸ“ˆ Goals

  • Master JavaScript fundamentals and advanced concepts.
  • Solve coding challenges effectively.
  • Share my journey with other developers and learners.

✨ Contributing

Feel free to fork this repository and use it as a starting point for your own journey through Eloquent JavaScript. If you spot any mistakes or want to suggest improvements, don’t hesitate to open an issue or a pull request!

πŸ’¬ Feedback

Have suggestions, feedback, or just want to chat about JavaScript? Contact me at dussanfreire@gmail.com.

🌟 Acknowledgements

Big shoutout to Marijn Haverbeke for writing such a fantastic book that makes learning JavaScript a joy! If you haven’t checked it out yet, I highly recommend it.

Happy coding! πŸš€