Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
380 commits
Select commit Hold shift + click to select a range
157972d
Merge pull request #379 from TheOdinProject/dependabot/npm_and_yarn/g…
wise-king-sullyman Sep 24, 2023
a0b07d9
Bump @babel/traverse from 7.22.11 to 7.23.2
dependabot[bot] Oct 19, 2023
38f0da9
More consistent spelling in 10_fibonacci
jamienorthman Oct 29, 2023
4a03e41
More consistent spelling in 10_fibonacci
jamienorthman Oct 29, 2023
80ca665
added explicit conversion to number for fibonacci solution
jamienorthman Oct 29, 2023
908c4ed
Update fibonacci-solution.js
leivadev Nov 6, 2023
123e00d
Add alternative solution in fibonacci-solution.js
leivadev Nov 8, 2023
a3992aa
Merge pull request #409 from Luislev/main
thatblindgeye Nov 11, 2023
a27f662
Merge branch 'main' into main
fortypercenttitanium Nov 16, 2023
b8b1ae4
Merge pull request #396 from jamienorthman/main
CouchofTomato Dec 12, 2023
265c40f
added alternate repeatString test strings
kumang-subba Jan 7, 2024
f429359
Improve wording in README regarding TOP provided solution
mao-sz Jan 15, 2024
e7f5d91
Fix typo
kennotfindsymbol Jan 19, 2024
5f7e20f
Merge pull request #426 from kennotfindsymbol/patch-1
thatblindgeye Jan 19, 2024
f682844
Update 04_removeFromArray/README.md
thatblindgeye Jan 19, 2024
311ae2f
Merge pull request #342 from TheOdinProject/bycdiaz-patch-2-1
thatblindgeye Jan 19, 2024
d3a7488
Update wording
mao-sz Jan 19, 2024
c87cd1c
Use lazy numbering as per style guide
mao-sz Jan 19, 2024
77363aa
Merge pull request #424 from MaoShizhong/chore/improve-readme-wording…
thatblindgeye Jan 19, 2024
f3a6283
12_findTheOldest fix ambiguity and remove redundant test description
donRehan Jan 23, 2024
eac90c5
Merge pull request #404 from TheOdinProject/dependabot/npm_and_yarn/b…
thatblindgeye Feb 3, 2024
3a49a90
feat: extra test case
damon314159 Feb 5, 2024
d740f2d
Merge pull request #432 from damon314159/patch-1
CouchofTomato Feb 5, 2024
7512dd6
corrected typo in the test case
manny53365 Feb 8, 2024
656d184
Merge branch 'main' into repeatstring_test_alternate_strings
kumang-subba Feb 9, 2024
a84f55b
Merge pull request #433 from manny53365/fix-typo-in-test-case
thatblindgeye Feb 9, 2024
7a097ac
Merge branch 'main' into repeatstring_test_alternate_strings
kumang-subba Feb 10, 2024
8bc6e47
Update findTheOldest test to clear ambiguity
donRehan Feb 12, 2024
3006bca
updated the readme file for clarity on the assignment
manny53365 Feb 13, 2024
b092163
Merge pull request #428 from donRehan/main
thatblindgeye Feb 13, 2024
a7bcd23
Merge pull request #435 from manny53365/07_tempConversion-update-read…
thatblindgeye Feb 13, 2024
f215901
Replace palindromes exercise solution with non-regex version (#438)
mao-sz Mar 2, 2024
461c852
Use const for palindrome solution variable (#439)
mao-sz Mar 3, 2024
d063f54
Replace generator-exercise with plop generator
Feb 18, 2024
7faf580
Update readme, add case-anything dep
Feb 18, 2024
ffe7f14
Add newline at end of generated file content
Mar 3, 2024
8209109
Merge pull request #436 from TheOdinProject/plopGenerator
thatblindgeye Mar 3, 2024
ed7975a
feat| create spec files
nik-rev Mar 22, 2024
8845572
feat| create readme
nik-rev Mar 22, 2024
670d85e
feat| create solution files
nik-rev Mar 22, 2024
4d46031
fix| factorial solution now passes
nik-rev Mar 22, 2024
ee05ca9
feat| spec file fixed
nik-rev Mar 22, 2024
f317492
fix| spec
nik-rev Mar 22, 2024
3530f26
feat/ add comments
nik-rev Mar 22, 2024
6c72df8
fix/ refactor
nik-rev Mar 22, 2024
dc40770
feat/ improve wording
nik-rev Mar 23, 2024
882d418
feat/ update function to not accept strings
nik-rev Mar 23, 2024
052637d
feat/ remove comment
nik-rev Mar 23, 2024
eaabc5b
feat/ improve order
nik-rev Mar 23, 2024
3bc0482
feat/ remove unnecesary describe
nik-rev Mar 23, 2024
dfca479
feat/ add new exercise
nik-rev Mar 23, 2024
0fd7d68
feat/ add new exercise
nik-rev Mar 23, 2024
0778f56
feat/ add new exercise
nik-rev Mar 23, 2024
329d7d6
feat/ update README
nik-rev Mar 23, 2024
bdce415
feat/ update readme
nik-rev Mar 23, 2024
a64b174
feat/ update readme
nik-rev Mar 23, 2024
ab1e728
feat/ single quotes replaced with double quotes
nik-rev Mar 23, 2024
f1f29ac
feat/ add wikipedia link to factorial
nik-rev Mar 23, 2024
54dd2ce
Update 13_factorial/README.md
nik-rev Mar 23, 2024
897b2c1
feat/ create tests
nik-rev Mar 23, 2024
59c6768
feat/ create solution
nik-rev Mar 23, 2024
9a5cdec
Update 02_repeatString/solution/repeatString-solution.spec.js
kumang-subba Mar 24, 2024
ac605aa
feat/ object is not nested
nik-rev Mar 24, 2024
7146b0d
feat/ improve wording
nik-rev Mar 24, 2024
e4e015d
feat/ wording
nik-rev Mar 24, 2024
90afe10
feat/ wording
nik-rev Mar 24, 2024
cd0a557
feat/ improve readability of solution
nik-rev Mar 24, 2024
db402f7
Merge branch 'feat/exercise_14' of https://github.com/nikitarevenco/j…
nik-rev Mar 24, 2024
8b2ed42
Update 13_factorial/factorial.spec.js
nik-rev Mar 24, 2024
15e4bec
feat/ mention that explicit NaN check is not required
nik-rev Mar 24, 2024
c19c1bc
feat/ clarify that we would normally use math.isnan
nik-rev Mar 24, 2024
49da653
feat/ add tests
nik-rev Mar 24, 2024
73a0f10
feat/ add solution
nik-rev Mar 24, 2024
e326ec4
feat/ fix test not working
nik-rev Mar 24, 2024
cbef253
feat/ change exercise to permutations
nik-rev Mar 24, 2024
13c66f4
feat/ generate exercise
nik-rev Mar 24, 2024
66de414
feat/ exercise now accepts objects
nik-rev Mar 24, 2024
99f8a40
fix/ semicolon
nik-rev Mar 24, 2024
4873c5a
Update 14_contains/solution/contains-solution.spec.js
nik-rev Mar 24, 2024
360078c
feat/ null check
nik-rev Mar 24, 2024
8c5851d
feat: improve clarity of suggestion
nik-rev Mar 30, 2024
fc2fc72
feat: remove mention of IEEE
nik-rev Mar 30, 2024
019af1d
feat: solution now accounts for children nested objects
nik-rev Mar 30, 2024
ee12fc4
feat: add test to account for children nested objects
nik-rev Mar 30, 2024
10c7bc9
feat: give more information for the exercise
nik-rev Apr 4, 2024
01d2ec5
feat: create tests for solution
nik-rev Apr 4, 2024
1eebb5d
feat: create solution to exercise
nik-rev Apr 4, 2024
cc29bbd
feat: use Josh's solution that uses `some` method
nik-rev Apr 7, 2024
afec252
Update 15_totalIntegers/solution/totalIntegers-solution.js
nik-rev Apr 7, 2024
d27fab0
Update 15_totalIntegers/solution/totalIntegers-solution.js
nik-rev Apr 7, 2024
507c436
Update 15_totalIntegers/solution/totalIntegers-solution.js
nik-rev Apr 7, 2024
d6b751c
feat: make solution code more dry
nik-rev Apr 7, 2024
f95b39c
feat: add some basic test suites (Mao)
nik-rev Apr 7, 2024
1c322dd
Merge pull request #420 from kumang-subba/repeatstring_test_alternate…
thatblindgeye Apr 20, 2024
fbc74a6
feat(pascal): create solution
nik-rev Apr 25, 2024
0e00b59
feat(pascal): create README.md
nik-rev Apr 25, 2024
8fe75f2
feat(pascal): create tests for exercise
nik-rev Apr 25, 2024
1afbcf8
feat(04): use `const` instead of `var` in solution (#456)
nik-rev May 3, 2024
930673d
feat(08): remove recursive solution (#457)
nik-rev May 3, 2024
45a5ced
Improve README verbiage (#453)
cu May 3, 2024
8608b40
feat(pascal): remove unnecessary call to function
nik-rev May 3, 2024
1695abe
Exercise 12: Provide alternative solution (#459)
nik-rev May 3, 2024
6f9080c
Change styling of notes for avoiding PRs and error messages
JoshDevHub May 4, 2024
097a736
Merge pull request #465 from JoshDevHub/change_style_of_notes
JoshDevHub May 4, 2024
d67e7a3
03_reverseString - update punctuation test case to include comma (#467)
vishpant76 May 6, 2024
312bd8a
05_sumAll: Update README.md (#475)
shubhatRashid May 25, 2024
2154dce
Changed number to integer in sumAll (#477)
saadsultan7 Jun 1, 2024
c79a878
Add minimum npm & node version requirements
pixie-cheeks Jun 4, 2024
82712db
Merge pull request #478 from pixie-cheeks/check_node_ver
wise-king-sullyman Jun 11, 2024
6e3d7d2
Bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 11, 2024
435b88b
Merge pull request #481 from TheOdinProject/dependabot/npm_and_yarn/b…
wise-king-sullyman Jun 11, 2024
3c636be
Leap Years: Use more appropriate solution (#483)
jveneziano25 Jun 27, 2024
26f5679
refactor: make code more readable
nik-rev Jun 29, 2024
c629198
refactor: remove unnecessary line break
nik-rev Jun 29, 2024
0c5480d
sumAll: Unify tests between solution and non-solution spec file (#488)
zohidjohn Jul 17, 2024
29dd5a4
feat(repeatString): enforce manual implementation via loops (#460)
Aug 10, 2024
0f87177
feat(contains): add some basic examples
nik-rev Aug 18, 2024
e630a8b
feat(contains): add a more exhaustive test for reference in the object
nik-rev Aug 18, 2024
0ad516b
feat(totalIntegers): define count as a variable using let in the body…
nik-rev Aug 18, 2024
99ebb57
chore(totalIntegers): move helper function outside to prevent it bein…
nik-rev Aug 18, 2024
3efb3f9
feat(totalIntegers): use helper function instead of inlining logic
nik-rev Aug 18, 2024
9e5041a
feat(permutations): remove unnecessary utility helper function that i…
nik-rev Aug 18, 2024
1e8c8f2
feat(permutations): update to inline logic within default parameter
nik-rev Aug 18, 2024
1831d39
feat(permutations): updato to make code more readable by using defaul…
nik-rev Aug 18, 2024
ef5b1cd
feat(permutations): add test for an array containing no elements
nik-rev Aug 18, 2024
f8d9ee9
feat(permutations): add example to README for an empty array
nik-rev Aug 18, 2024
c89cb99
feat(permutations): improved variable naming
nik-rev Aug 18, 2024
b5d77fa
feat(permutations): clarify in README that the input integers will no…
nik-rev Aug 18, 2024
b5adfce
feat(pascal): better names for variables
nik-rev Aug 18, 2024
ca43c00
feat(pascal): math mistake
nik-rev Aug 18, 2024
10d559d
feat(factorial): remove .skip from all tests under solution
nik-rev Aug 20, 2024
8829dde
feat(contains): move same reference test to the beginning
nik-rev Aug 20, 2024
de104e3
feat(contains): more concise wording
nik-rev Aug 20, 2024
a204931
feat(contains): copy over tests from solution to spec file
nik-rev Aug 20, 2024
c867d73
feat(totalIntegers): replace comment about best practice with reminde…
nik-rev Aug 20, 2024
fe07a8c
feat(totalIntegers): copy tests over from solution file
nik-rev Aug 20, 2024
fc19279
feat(permutations): copy over tests from solution
nik-rev Aug 20, 2024
d64601a
fix(pascal): typo
nik-rev Aug 20, 2024
ad37314
feat(pascal): copy over tests from solution
nik-rev Aug 20, 2024
d1c8f2c
fix(contains): change false to true for example which is true
nik-rev Aug 23, 2024
ca2eee9
feat: omit `.sort()` for permutations of length 0 and 1
nik-rev Aug 25, 2024
2f0b347
feat: remove `.sort()` from test files
nik-rev Aug 25, 2024
f9bbd25
feat: remove line break
nik-rev Aug 25, 2024
fc4bd94
feat: remove line break
nik-rev Aug 25, 2024
7ff69d8
Refactor issue markdowm to YAML templates (#491)
cakegod Sep 4, 2024
a12f311
08_calculator:Add more test cases for subtract and power (#494)
damon314159 Sep 23, 2024
e51671e
Calculator Factorial: Remove redundant guard clause (#499)
DavidStaus Oct 18, 2024
406b4c4
Whitespace and capitalization correction
o1Suleyman Oct 26, 2024
203fd76
Merge pull request #501 from o1Suleyman/patch-2
CouchofTomato Oct 30, 2024
2861e62
Javascript-exercises: 02_repeatString - Fix code on line 32
bhagyeshsp Nov 13, 2024
305ad2d
Update 06_leapYears README.md with a reference
bhagyeshsp Nov 16, 2024
58df2c0
Add contributing guide file
mao-sz Jan 29, 2025
7ef1882
Remove 'Adding New Exercises' section from general README.md
mao-sz Jan 29, 2025
bc1a836
Use repo-specific contributing guide link
mao-sz Jan 29, 2025
39169ed
Use lazy numbering for ordered list
mao-sz Jan 29, 2025
0da5ad2
Merge pull request #506 from bhagyeshsp/patch-2
JoshDevHub Feb 3, 2025
598ab5c
02_repeatString/solution - Line-32, replace "odin" with "hey"
bhagyeshsp Feb 3, 2025
e10d52c
Merge pull request #505 from bhagyeshsp/patch-1
JoshDevHub Feb 3, 2025
fd555e3
Merge pull request #521 from bhagyeshsp/patch-3
JoshDevHub Feb 3, 2025
15d4dd0
Tidy up comment style
mao-sz Feb 4, 2025
c5d806b
Replace regex test with String.prototype.repeat test
mao-sz Feb 4, 2025
5ea6746
Add test preventing use of built-in String repeat method
mao-sz Feb 4, 2025
b4be1d8
Combine separate instruction sentence with instruction list
mao-sz Feb 4, 2025
098f3f4
Add important reminder about approved issue before PR
mao-sz Feb 4, 2025
ace1d6e
Merge pull request #523 from MaoShizhong/repeat-string-builtin
JoshDevHub Feb 11, 2025
45d06e1
Merge pull request #522 from MaoShizhong/repeat-string-test
JoshDevHub Feb 11, 2025
59b5fc7
Merge pull request #518 from MaoShizhong/contributing-md
JoshDevHub Feb 11, 2025
2bc1c95
fix: spelling mistake
nik-rev Feb 11, 2025
b025e48
Improve testing to ensure solution matches expected behaviour
RedViperPT Feb 11, 2025
b92866a
Update the tests for the solutions
RedViperPT Feb 11, 2025
d4421b0
Merge pull request #524 from RedViperPT/issue_javascript-exercises_05…
JoshDevHub Feb 11, 2025
b08da1e
feat: make solution simpler (credit to @JoshDevHub)
nik-rev Feb 16, 2025
5e4f4e2
feat: simpler solution for permutations (credit @JoshDevHub)
nik-rev Feb 16, 2025
9a22ea1
Typo: change supress to suppress in README.md
Tongxin-Sun Mar 14, 2025
278058d
Merge pull request #532 from Tongxin-Sun/main
ManonLef Mar 14, 2025
61c3de9
All exercises: Add four new exercises (#509)
Eduardo06sp May 4, 2025
2c0bee7
Fix typo: change '1 times' to '1 time' in repeatString test
Shresth2725 May 27, 2025
2f77530
Remove duplicate "skipped test" instruction
mao-sz May 31, 2025
a444086
Fix typo in 05_joinStrings/README.md: punctation → punctuation
adarshdotdev Jun 23, 2025
347a109
Merge pull request #555 from adarshdotdev/fix-typo-05-joinStrings
ManonLef Jun 27, 2025
5bb11d7
Merge pull request #549 from MaoShizhong/remove-redundant-instruction
ManonLef Jun 27, 2025
b35a9be
Merge pull request #547 from Shresth2725/fix-typo-repeatString-test
ManonLef Jun 27, 2025
b9df545
Fix typo in `joinStrings-example.spec.js` test (#557)
aakarsh-dev-commits Sep 3, 2025
77679bb
08_removeFromArray: Add clearer hint for use of built-in array method…
eyad-alkhalidy Sep 3, 2025
63b8563
12_calculator: Use operator instead of method in the solution (#571)
Eduardo06sp Sep 4, 2025
4f8e080
docs: make hints less explicit to encourage problem-solving (#576)
eyad-alkhalidy Sep 4, 2025
1c4381c
Migrate CircleCI workflows for solution tests to GitHub actions (#577)
mao-sz Sep 5, 2025
c52633d
reverseString: Make hint more generic (#578)
sajwan05 Sep 5, 2025
300831c
12_calculator: Clarify instructions (#579)
henrylin03 Sep 6, 2025
03b4b21
Clarify language in repo README about provided solutions (#581)
mao-sz Sep 14, 2025
e9bc92c
Feature Request Template: Add missing space in description (#585)
zunaid-hassan Oct 24, 2025
698480c
README.md: Separate npm and Jest installation instructions for clarit…
zunaid-hassan Oct 27, 2025
2a88d09
repeatString: Update README to clarify negative number handling (#589)
mao-sz Nov 12, 2025
4585052
Bump js-yaml (#590)
dependabot[bot] Nov 22, 2025
f6a2793
10_leapYears: Replace broken link (#595)
ZackHoang Nov 27, 2025
1f9c9d9
Merge pull request #441 from nik-contrib/feat/exercise_13
JoshDevHub Dec 1, 2025
ba58d6f
Merge pull request #442 from nik-contrib/feat/exercise_14
JoshDevHub Dec 1, 2025
496a3c3
Merge pull request #443 from nik-contrib/feat/exercise_15
JoshDevHub Dec 1, 2025
bda4bf1
Merge pull request #447 from nik-contrib/feat/exercise_19
JoshDevHub Dec 1, 2025
ce35854
Merge pull request #444 from nik-contrib/feat/exercise_16
JoshDevHub Dec 1, 2025
41c43b3
Remove generated spaces on blank lines
mao-sz Dec 1, 2025
6e68f35
Allow generating new exercises in nested directories
mao-sz Dec 1, 2025
c053c2a
Move exercises to relevant section dirs
mao-sz Dec 1, 2025
77a1094
Renumber CS exercises after move
mao-sz Dec 1, 2025
65c3939
Amend README instructions for navigating to exercise dir
mao-sz Dec 1, 2025
7a32f7c
Fix test workflow jest path
mao-sz Dec 2, 2025
116c2fc
Fix clashing exercise numbers (#596)
mao-sz Dec 4, 2025
4e821fb
README: Add duplicate reminder about not PRing own solutions (#599)
eyad-alkhalidy Dec 12, 2025
c113fc8
Merge pull request #597 from mao-sz/restructure
JoshDevHub Dec 12, 2025
9b9bcbf
Clarify that removeFromArray must always return an array (#602)
olgacoz Dec 13, 2025
8cef5e3
Bump tmp and inquirer (#591)
dependabot[bot] Dec 13, 2025
002729a
Delete accidental duplicate top-level exercises (#603)
mao-sz Dec 13, 2025
74e5005
replaced test of 25! with test of 18!
camille-lanuel Dec 16, 2025
65d711f
Merge pull request #605 from camille-lanuel/factorial_test_bug_fix
JoshDevHub Dec 16, 2025
d3e9bba
Fix typo in README: 'rest' to 'test' (#609)
kayush614 Dec 29, 2025
3e34110
repeatString: Give "random" test a more appropriate name (#616)
mao-sz Jan 3, 2026
4aa0c39
Contains: Fix wrong boolean in test name (#618)
fadotti Jan 8, 2026
97796cf
totalIntegers: Provide clearer test names (#623)
mao-sz Jan 27, 2026
05f2122
README.md: Improve visual reading flow with inline code block (#624)
zunaid-hassan Jan 30, 2026
9d2ad5d
Palindromes: Restructure and rename tests for clarity (#629)
mao-sz Feb 2, 2026
6b023b0
Run test workflow on PRs affecting packages (#632)
mao-sz Feb 28, 2026
ab7d84d
build(deps-dev): bump minimatch from 3.1.2 to 3.1.5 (#631)
dependabot[bot] Feb 28, 2026
b5db863
Upgrade ESLint to v10 (#633)
mao-sz Feb 28, 2026
b971989
4_permutations: Fix typo in README (#637)
SuperScuffedDev Mar 7, 2026
5bfc1ce
Upgrade Jest to v30 (#634)
mao-sz Mar 19, 2026
4fcbca3
build(deps-dev): bump flatted from 3.3.3 to 3.4.2 (#638)
dependabot[bot] Mar 21, 2026
fd44bf2
build(deps): bump picomatch (#639)
dependabot[bot] Mar 25, 2026
24b1127
build(deps-dev): bump handlebars from 4.7.8 to 4.7.9 (#640)
dependabot[bot] Mar 28, 2026
03a7c02
Factorial: Link to simpler resource (#644)
bydtoms Apr 7, 2026
fc154a3
README.md: Update link to repo forking instructions (#645)
mao-sz May 13, 2026
5c797c3
Fix md formatting of exercises READMEs (#654)
mao-sz Jun 28, 2026
1d0a568
09_sumAll : Clarify negative input handling (#653)
shauryaa108 Jun 28, 2026
a3c7125
03_numberChecker: Fix grammar (#655)
spidercam Jul 2, 2026
f3914e4
Include .spec.js in test command instruction (#657)
mao-sz Jul 11, 2026
a0160e0
13_palindromes: Have tests for odd and even-length palindromes (#661)
Sundwalltanner Jul 28, 2026
d29992e
14_fibonacci: Include negative arg instruction in README (#660)
GPerencine Jul 28, 2026
d0f0a8b
build(deps): bump brace-expansion (#663)
dependabot[bot] Aug 20, 2026
b9f8663
Allow unrs-resolver@1.11.1 install script (#664)
mao-sz Aug 20, 2026
8848f8d
build(deps-dev): bump @humanfs/node from 0.16.7 to 0.16.8 (#667)
dependabot[bot] Sep 4, 2026
7e73a7b
Foundations Exercises: Group exercises by lessons (#666)
zunaid-hassan Sep 4, 2026
084cef0
build(deps-dev): bump @babel/core from 7.29.0 to 7.29.7 (#668)
dependabot[bot] Sep 6, 2026
af7cac2
build(deps-dev): bump browserslist from 4.28.1 to 4.28.9 (#669)
dependabot[bot] Sep 6, 2026
58cb8c8
Permutations/Pascal: Refactor example solutions for simplicity and cl…
damon314159 Sep 8, 2026
63232aa
solve hello world
M-Kcodes Sep 9, 2026
b8c697c
solve hello world spec
M-Kcodes Sep 9, 2026
fe87c2d
solve addNumber
M-Kcodes Sep 9, 2026
f62d5c3
solve numberChecker
M-Kcodes Sep 10, 2026
ca38aa2
solve mathEquation
M-Kcodes Sep 10, 2026
e9fa8d3
solve joinStrings
M-Kcodes Sep 10, 2026
b5d08dc
Solve loops and arrays
M-Kcodes Sep 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

12 changes: 0 additions & 12 deletions .eslintrc.json

This file was deleted.

54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/archive/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: Bug Report
about: Create a report to help us improve something that is not working correctly
title: "Bug - :"
labels: "Status: Needs Review, Type: Bug"
assignees: ""
---

<!-- Thank you for taking the time to submit a bug report to The Odin Project. In order to get issues closed in a reasonable amount of time, you must include a baseline of information about the bug in question. Please read this template in its entirety before filling it out to ensure that it is filled out correctly. -->

Complete the following REQUIRED checkboxes:
- [ ] I have thoroughly read and understand [The Odin Project Contributing Guide](https://github.com/TheOdinProject/.github/blob/main/CONTRIBUTING.md)
- [ ] The title of this issue follows the `Bug - location of bug: brief description of bug` format, e.g. `Bug - Exercises: File type incorrect for all test files`

The following checkbox is OPTIONAL:
<!-- Completing this checkbox does not guarantee you will be assigned this issue, but rather lets us know you are interested in working on it. -->
- [ ] I would like to be assigned this issue to work on it

<hr>

**1. Description of the Bug:**
<!-- A clear and concise description of what the bug is. Include any screenshots that may help show the bug in action. -->


**2. How To Reproduce:**
<!--
What steps one might need to take in order to reproduce this bug, e.g.:
1. Log in
2. Visit a lesson page
3. Click the complete button
4. The complete button does not update
-->


**3. Expected Behavior:**
<!--
A brief description of what you expected to happen, e.g.:
1. Log in
2. Visit a lesson page
3. Click the complete button
4. The complete button updates correctly
-->


**4. Desktop/Device:**
<!-- The more information you are able to provide, the better. -->
- Device: <!-- [e.g. iPhone6] -->
- OS: <!-- [e.g. iOS] -->
- Browser: <!-- [e.g. chrome, safari] -->
- Version: <!-- [e.g. 22] -->

**5. Additional Information:**
<!-- Any additional information about the bug. -->

38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/archive/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Feature Request
about: Suggest a new feature or enhancement for this project
title: ""
labels: "Status: Needs Review"
assignees: ""
---

<!-- Thank you for taking the time to submit a new feature request to The Odin Project. In order to get issues closed in a reasonable amount of time, you must include a baseline of information about the feature/enhancement you are proposing. Please read this template in its entirety before filling it out to ensure that it is filled out correctly. -->

Complete the following REQUIRED checkboxes:
- [ ] I have thoroughly read and understand [The Odin Project Contributing Guide](https://github.com/TheOdinProject/.github/blob/main/CONTRIBUTING.md)
- [ ] The title of this issue follows the `location for request: brief description of request` format, e.g. `Exercises: Add exercise on XYZ`

The following checkbox is OPTIONAL:
<!-- Completing this checkbox does not guarantee you will be assigned this issue, but rather lets us know you are interested in working on it. -->
- [ ] I would like to be assigned this issue to work on it

<hr>

**1. Description of the Feature Request:**
<!--
A clear and concise description of what the feature or enhancement is, including how it would be useful/beneficial or what problem(s) it would solve.
-->


**2. Acceptance Criteria:**
<!--
A list of checkbox items that explain the requirements needed to be met to resolve this request, e.g.:
- [ ] A theme toggle is present on the dashboard
- [ ] Clicking the theme toggle changes between light and dark
- [ ] A user's theme choice persists after leaving the website
-->


**3. Additional Information:**
<!-- Any additional information about the feature request, such as a link to a Discord discussion, screenshots, etc. -->

97 changes: 97 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: 🐞 Report a bug
description: Create a report to help us fix something that is not working correctly
title: "Bug: <Brief description of the bug>"
labels: ["Status: Needs Review", "Type: Bug"]
assignees:
- nil
body:
- type: markdown
attributes:
value: |
Thank you for contributing your ideas to make our project better!

To help us understand and evaluate your suggestion in a reasonable amount of time, please provide detailed information below.

If you have any questions or are unsure about anything, don't be afraid to ask! The maintainers are here to help.

- type: checkboxes
id: prerequisites
attributes:
label: Prerequisites
description: "Please confirm the following prequisites are met:"
options:
- label: I have thoroughly read and understand [The Odin Project Contributing Guide](https://github.com/TheOdinProject/.github/blob/main/CONTRIBUTING.md)
required: true
- label: I have searched the existing issues to ensure this bug hasn't been reported before (please have a look through our [open issues list](https://github.com/TheOdinProject/javascript-exercises/issues) to make sure)
required: true
- label: "The title of this issue follows the `Bug - location of bug: brief description of bug` format, e.g. `Bug - Exercises: File type incorrect for all test files`"
required: true
- label: (Optional) I am interested in working on this issue and would like to be assigned to it
required: false

- type: textarea
id: bug-description
attributes:
label: Bug Description
description: Clearly describe the bug. Include any screenshots that may help show the bug in action.
validations:
required: true

- type: textarea
id: bug-reproducement
attributes:
label: How to reproduce the bug
description: "List what steps one might need to take in order to reproduce this bug"
placeholder: |
1. Log in
2. Visit a lesson page
3. Click the complete button
4. The complete button does not update
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: Expected Behavior
description: A brief description of what you expected to happen
placeholder: |
1. Log in
2. Visit a lesson page
3. Click the complete button
4. The complete button updates correctly
validations:
required: true

- type: input
id: device
attributes:
label: Device
placeholder: iPhone6
validations:
required: true

- type: input
id: os
attributes:
label: OS
placeholder: iOS
validations:
required: true

- type: input
id: browser
attributes:
label: Browser and its version
placeholder: Chrome 122
validations:
required: true

- type: textarea
id: additional-comments
attributes:
label: (Optional) Additional Comments
description: Provide any extra information that might be helpful, such as links to Discorddiscussions, screenshots, or other relevant details.
placeholder: We ❤️ open source
validations:
required: false
60 changes: 60 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: 🌟 Suggest an improvement
description: Suggest a new feature or enhancement
title: "<Location of the improvement>: <Brief description of the improvement>"
labels: ["Status: Needs Review"]
assignees:
- nil
body:
- type: markdown
attributes:
value: |
Thank you for contributing your ideas to make our project better!

To help us understand and evaluate your suggestion in a reasonable amount of time, please provide detailed information below.

If you have any questions or are unsure about anything, don't be afraid to ask! The maintainers are here to help.

- type: checkboxes
id: prerequisites
attributes:
label: Prerequisites
description: "Please confirm the following prequisites are met:"
options:
- label: I have thoroughly read and understand [The Odin Project Contributing Guide](https://github.com/TheOdinProject/.github/blob/main/CONTRIBUTING.md)
required: true
- label: I have searched the existing issues to ensure this improvement hasn't been suggested before (please have a look through our [open issues list](https://github.com/TheOdinProject/javascript-exercises/issues) to make sure)
required: true
- label: "The title of this issue follows the `<Location of the improvement>: <Brief description of the improvement>` format, e.g. `Exercises: Add exercise on XYZ`"
required: true
- label: (Optional) I am interested in working on this issue and would like to be assigned to it
required: false

- type: textarea
id: improvement-description
attributes:
label: Improvement Description
description: Clearly describe the proposed feature or enhancement. Explain its purpose, how it would be useful, and what problem(s) it would solve.
validations:
required: true

- type: textarea
id: acceptance-criteria
attributes:
label: Acceptance Criteria
description: List the specific requirements that must be met for this request to be considered complete. Use checkbox items to outline each criterion.
placeholder: |
- [ ] A theme toggle is present on the dashboard
- [ ] Clicking the theme toggle changes between light and dark
- [ ] A user's theme choice persists after leaving the website
validations:
required: true


- type: textarea
id: additional-comments
attributes:
label: (Optional) Additional Comments
description: Provide any extra information that might be helpful, such as links to Discord discussions, screenshots, or other relevant details.
placeholder: We ❤️ open source
validations:
required: false
32 changes: 32 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!-- Thank you for taking the time to contribute to The Odin Project. In order to get this pull request (PR) merged in a reasonable amount of time, you must complete this entire template. -->

## Because
<!-- Summarize the purpose or reasons for this PR, e.g. what problem it solves or what benefit it provides. -->


## This PR
<!-- A bullet point list of one or more items describing the specific changes. -->


## Issue
<!--
If this PR closes an open issue in this repo, replace the XXXXX below with the issue number, e.g. Closes #2013.

If this PR closes an open issue in another TOP repo, replace the #XXXXX with the URL of the issue, e.g. Closes https://github.com/TheOdinProject/curriculum/issues/XXXXX

If this PR does not close, but is related to another issue or PR, you can link it as above without the 'Closes' keyword, e.g. 'Related to #2013'.
-->
Closes #XXXXX

## Additional Information
<!-- Any other information about this PR, such as a link to a Discord discussion. -->


## Pull Request Requirements
<!-- Replace the whitespace between the square brackets with an 'x', e.g. [x]. After you create the PR, they will become checkboxes that you can click on. -->
- [ ] I have thoroughly read and understand [The Odin Project Contributing Guide](https://github.com/TheOdinProject/.github/blob/main/CONTRIBUTING.md)
- [ ] The title of this PR follows the `location of change: brief description of change` format, e.g. `01_helloWorld: Update test cases`
- [ ] The `Because` section summarizes the reason for this PR
- [ ] The `This PR` section has a bullet point list describing the changes in this PR
- [ ] If this PR addresses an open issue, it is linked in the `Issue` section
- [ ] If this PR includes any changes that affect the solution of an exercise, I've also updated the solution in the `/solutions` folder
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Linter
on:
pull_request:
paths:
- '**.js'
- '!archive/**'

jobs:
lint:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install
- run: npm run lint
16 changes: 16 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Tests
on:
pull_request:
paths:
- 'package*.json'
- '**/solution/*.js'

jobs:
tests:
name: Run solution tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install
- run: npm run test -- solution
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
33 changes: 33 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# The Odin Project JavaScript Exercises Contributing Guide

Thank you for expressing interest in contributing to The Odin Project (TOP) JavaScript exercises! Before continuing through this guide, be sure you've read our [general contributing guide](https://github.com/TheOdinProject/.github/blob/main/CONTRIBUTING.md), as it contains information that is important for all of our repos.

This contributing guide assumes you have followed the instructions in our general contributing guide to fork and clone our JavaScript exercises repo.

## Table of Contents

- [How to Contribute](#how-to-contribute)
- [Prerequisites](#prerequisites)
- [Adding New Exercises](#adding-new-exercises)

## How to Contribute

### Prerequisites

- Node v18.0.0 or higher
- npm v8.5.5 or higher

### Adding New Exercises

> [!IMPORTANT]
> Please do not open a pull request with a new exercise unless you have opened an issue in this repo with your proposal **and** it has been approved by a maintainer.

If a maintainer has approved a new exercise to be added, the new exercise(s) must follow the same format as existing exercises.

To generate a new exercise template, do the following:

1. Be sure to run `npm install` at the root of the `javascript-exercises` directory to install the necessary dependencies.
1. Run the command `npm run generate`.
1. When prompted, enter the name of the new exercise in "camelCase" syntax. This will create a new directory with the necessary files included.
1. Update the `README.md` and `.spec.js` file, as well as the files inside the `solution` directory of the new exercise.
1. Open a pull request with the new exercise.
12 changes: 6 additions & 6 deletions generator-exercise/LICENSE → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License

Copyright (c) 2017 Cody Loyd <codyloyd@gmail.com> (codyloyd.com)
Copyright (c) 2023 The Odin Project

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading