Skip to content

Commit a4a24c0

Browse files
committed
New README - Kick off
1 parent 8a6772e commit a4a24c0

1 file changed

Lines changed: 47 additions & 2 deletions

File tree

README.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,47 @@
1-
# javascript-coding-challenges
2-
Here I will put my challenges with how I resolve it. Feel free to fork by yourself.
1+
# Javascript Coding Challenges
2+
3+
![Version](https://img.shields.io/github/package-json/v/403-html/javascript-coding-challenges)
4+
![Last commit](https://img.shields.io/github/last-commit/403-html/javascript-coding-challenges)
5+
![Jest version](<https://img.shields.io/badge/testing%20library-jest%20(%5E26.6.3)-blue>)
6+
![Language](https://img.shields.io/github/languages/top/403-html/javascript-coding-challenges)
7+
8+
## Description
9+
10+
> Sample coding challanges. You can write and test it right away.
11+
12+
A repository designed to store programming tasks. Due to the added tests, it is possible to control your own capabilities.
13+
14+
It's not perfect, so if you see a bug in the solution or within tests, it will be great if you share your thoughts on the subject, e.g. as an issue or creating a PR.
15+
16+
## How to work with it
17+
18+
First, you have to clone project
19+
20+
```
21+
git clone https://github.com/403-html/javascript-coding-challenges.git
22+
```
23+
24+
Then search for intresting challenge, for example `prime-number`.
25+
Read the `README.md` in that folder. Write you solution in this folder.
26+
27+
At the end of your file export your function
28+
29+
```
30+
module.exports = name_of_your_function
31+
```
32+
33+
Go to folder `__tests__` in that folder, there will be test file (named in our example `isPrime.spec.js`). Change the first line from
34+
35+
```
36+
const isPrime = require('../isPrime')
37+
```
38+
39+
to
40+
41+
```
42+
const isPrime = require('../name_of_your_file')
43+
```
44+
45+
## Contributors
46+
47+
> Author: Tymoteusz '403-html' Stępień

0 commit comments

Comments
 (0)