Some javascript challenges from beginner to advanced.
A collection of Javascript coding challenges, from beginner to advanced. All challenges are taken from the generous web or created by the contributors.
I'm creating this repo because I want to bring as many as possible code challenges (for free obviously) in a file or more. I know that there are so many websites like codewars or coderbyte but this is different. So many websites are not for free, you need to pay a subscription.
HERE you can find a list of all the challenges. If you have an idea on how to improve this repo don't be shine, post a PR o open a new ISSUE!
- Clone this repo
- Install all dependencies via
npm install
. - Fill all challenges in
./src/challenges.js
. - Test them via
npm run test
. - Some ideas? Submit a PR or open an ISSUE!
- Clone this repo.
- Install all dependencies via
npm install
. - Write down your challenge (with solution) in
./src/challenges.js
. - Write a test for your challenge in
./test/_your-challenge.js
. - Import your test in the
test.js
file. - Test your challenge via
npx ava ./test/_your-challenge.js
. - Move your solution to
./src/solutions.js
. - Submit your PR!
All challenges need to follow this scheme:
(2 spaces between each challenge)
/**
* CHALLEBGE <n>: <CHALLENGE-NAME>
* @name <functionName>
* @description <challenge-description>
* @author <Your Name> <you[at]domain.com>
*
*
* @example Usage:
* functionName(args) //=> output
*
*
* @param {Type} a ...
* @param {Type} b ...
*
* @returns {Type} ...
*/
module.exports.challenge_name = function() {}
If your challenge is taken from forums please link the thread or the stackoverflow question with @see
READ MORE ABOUT JSODC here
- Javascript30 - 30 Day Vanilla JS Challenge
- Javascript Cardio - JavaScript challenges and problems