Skip to content

A collection of beginner-friendly JavaScript exercises to practice coding, learn core JavaScript concepts, and build practical programming skills.

Notifications You must be signed in to change notification settings

codeprty/learn-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

JavaScript Fundamental Exercises

A collection of beginner-friendly JavaScript exercises to help you practice core concepts and build a strong foundation in programming.

All exercises are tested in Visual Studio Code and can be run using Node.js.

Note: More exercises will be added regularly.


Folder Structure

The exercises are organized into folders based on level:

javascript-exercises/
│
├── basic/          # Beginner exercises (current)
├── intermediate/   # Coming soon
└── advanced/       # Coming soon

Each folder contains multiple JavaScript files, each focusing on a specific topic or exercise set.


Prerequisites

  • Node.js installed on your machine (v14 or above recommended)
  • Visual Studio Code recommended, but any code editor can be used

How to Run the Exercises

  1. Check if Node.js is installed
    Open the terminal in VS Code and run:
    node -v
    • If you see a version number (e.g., v22.18.0), Node.js is installed.
    • If not, install Node.js first.
  2. Install Node.js (if needed)
    • Download and install Node.js from: https://nodejs.org/
    • Confirm installation by running node -v again.
  3. Open the project in VS Code
    • Navigate to your project folder and open it in VS Code.
    • Open a terminal inside VS Code (Terminal > New Terminal).
  4. Run an exercise
    • In the terminal, run a specific JavaScript file with Node.js:
      node basic/exercise_01.js
    • Replace the path with file you want to run (e.g., basic/exercise_02.js).
  5. View the output
    • The results will be printed in the terminal.
    • Modify the code or try different exercises to practice and experiment in real-time.

About

A collection of beginner-friendly JavaScript exercises to practice coding, learn core JavaScript concepts, and build practical programming skills.

Topics

Resources

Stars

Watchers

Forks