Commit e8733db
committed
refactor: switch to export-based evaluation pattern
- Replace console.log Results output with direct exports
- Rewrite tests to import modules directly instead of parsing stdout
- Add export instructions with 🐨 and 💰 hints in problem files
- Add helpful 🚨 error messages for common mistakes1 parent 0e6780b commit e8733db
File tree
104 files changed
+795
-736
lines changed- exercises
- 01.expressions-and-output
- 01.problem.hello-world
- 01.solution.hello-world
- 02.problem.escaping-strings
- 02.solution.escaping-strings
- 03.problem.strings
- 03.solution.strings
- 04.problem.numbers
- 04.solution.numbers
- 05.problem.template-literals
- 05.solution.template-literals
- 02.variables
- 01.problem.let-and-const
- 01.solution.let-and-const
- 02.problem.reassignment-vs-mutation
- 02.solution.reassignment-vs-mutation
- 03.primitive-types
- 01.problem.numbers-and-strings
- 01.solution.numbers-and-strings
- 02.problem.booleans-and-comparisons
- 02.solution.booleans-and-comparisons
- 03.problem.null-and-undefined
- 03.solution.null-and-undefined
- 04.problem.bigint-and-symbol
- 04.solution.bigint-and-symbol
- 04.control-flow
- 01.problem.conditionals
- 01.solution.conditionals
- 02.problem.switch-statements
- 02.solution.switch-statements
- 03.problem.loops
- 03.solution.loops
- 05.functions
- 01.problem.parameters-and-returns
- 01.solution.parameters-and-returns
- 02.problem.type-inference
- 02.solution.type-inference
- 03.problem.explicit-return-types
- 03.solution.explicit-return-types
- 04.problem.arrow-functions
- 04.solution.arrow-functions
- 05.problem.jsdoc
- 05.solution.jsdoc
- 06.void-and-never
- 01.problem.void-functions
- 01.solution.void-functions
- 02.problem.never-type
- 02.solution.never-type
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
104 files changed
+795
-736
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 16 | + | |
| 17 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
Lines changed: 43 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | | - | |
| 20 | + | |
13 | 21 | | |
14 | | - | |
15 | | - | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
19 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
20 | 36 | | |
21 | | - | |
22 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
23 | 47 | | |
24 | 48 | | |
25 | 49 | | |
26 | | - | |
| 50 | + | |
27 | 51 | | |
28 | | - | |
29 | | - | |
| 52 | + | |
| 53 | + | |
30 | 54 | | |
31 | 55 | | |
32 | 56 | | |
33 | | - | |
| 57 | + | |
34 | 58 | | |
35 | | - | |
36 | | - | |
| 59 | + | |
| 60 | + | |
37 | 61 | | |
38 | 62 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 11 | + | |
| 12 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
Lines changed: 28 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
10 | 27 | | |
11 | | - | |
| 28 | + | |
12 | 29 | | |
13 | | - | |
14 | | - | |
| 30 | + | |
| 31 | + | |
15 | 32 | | |
16 | 33 | | |
17 | 34 | | |
18 | | - | |
19 | | - | |
| 35 | + | |
20 | 36 | | |
21 | | - | |
22 | | - | |
| 37 | + | |
| 38 | + | |
23 | 39 | | |
24 | 40 | | |
25 | 41 | | |
| |||
0 commit comments