AmmonMatthews / javascript-exercises

πŸ“š Collection of JavaScript exercises and coding challenges.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScript Exercises

Collection of JavaScript Exercises and Coding Challenges

Stars Last Commit


Series of interesting JavaScript exercises that I solved during my education. For each exercise I've tried to include several possible solutions. Thanks to Jest test framework you can easily check the correctness of your solution.


Table of Contents


Installation

Clone the repo.

$ git clone https://github.com/appalaszynski/javascript-exercises.git

Install Jest globally.

$ npm install -g jest

Usage

Each exercise directory contains index.js file with exercise contents and test.js file with tests validating solution correctness.

Running All Tests

$ jest

Running Tests for Specific Exercise

To run test for specific exercise simply add its directory path to jest command, e.g.

$ jest exercises/ReverseString

You can also run Jest in watch mode by adding --watch flag.


Exercises


Contributing

All contributions and suggestions are welcome! For suggested improvements, please create an issue. For direct contributions, please fork the repository, create your feature branch, commit your changes, push commits to the branch and create a new pull request.

About

πŸ“š Collection of JavaScript exercises and coding challenges.


Languages

Language:JavaScript 100.0%