Skip to content

Latest commit

 

History

History
80 lines (54 loc) · 1.56 KB

File metadata and controls

80 lines (54 loc) · 1.56 KB

JavaScript Assignments

This folder contains assignments focused on problem solving using JavaScript built-in functions.

Assignment Categories

You can follow the recommended order below or complete them in any sequence you prefer.

1. Easy

  • Count Characters
  • Count Occurrences
  • Count Vowels
  • Reverse String
  • Fibonacci

2. Medium

  • Find Duplicates
  • Perfect Number
  • Non-repeat Character
  • Primes Up To 100
  • Reverse Integer
  • String Compression

3. Hard

  • Compress Words
  • Unique Elements

Development Setup

Option 1: Run Locally (Requires Node.js)

  1. Ensure you have Node.js installed.
  2. Clone or download this repository.
  3. Navigate to the respective assignment folder and execute the script using Node.js.

Option 2: Run on Replit (No Local Setup Required)

  1. Copy the assignment code to Replit.
  2. Execute the script in Replit's environment.

Running Tests

For All Assignments

  1. Navigate to /Javascript-Assignments/js-built-ins.
  2. Install dependencies using:
    npm install
  3. Run specific tests with:
    npm run <test-name>
    Example:
    npm run test-duplicates
  4. To execute all tests at once, run:
    npm run all

Demo Video

For a walkthrough on navigating through the assignments, check out this demo video:

js-built-ins.mov

PS: If you're stuck on a problem for more than an hour, feel free to check the solution folder.