Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you have a suggestion to improve an exercise, an idea for a new exercise, or
- A markdown file with a description of the task, an empty (or mostly empty) JavaScript file, and a set of tests.
- A `solutions` directory that contains an example solution and the same test file with all of the tests unskipped.

To complete an exercise, you will need to go to the exercise directory with `cd <path to file>` in the terminal and run `npm test exerciseName.spec.js`. For example, to go to the first Foundations exercise "helloWorld", you need to `cd foundations/01_helloWorld` then run `npm test helloWorld.spec.js`. This should run the test file and show you the output. When you run a test for the first time, it will fail. This is by design! You must open the exercise file and write the code needed to get the test to pass.
To complete an exercise, you will need to go to the exercise directory with `cd <path to file>` in the terminal and run `npm test exerciseName.spec.js`. For example, to go to the first Foundations exercise "helloWorld", you need to `cd foundations/data_types_and_conditionals/01_helloWorld` then run `npm test helloWorld.spec.js`. This should run the test file and show you the output. When you run a test for the first time, it will fail. This is by design! You must open the exercise file and write the code needed to get the test to pass.
1. Some of the exercises have test conditions defined in their spec file as `test.skip` instead of `test`. This is intentional. Once all `test` cases pass, you will change the next `test.skip` to `test` and test your code again. You will do this until all conditions are satisfied. **All tests must pass at the same time**, and you should not have any instances of `test.skip` in the spec file when you are finished with an exercise.
1. Once you successfully finish an exercise, check the `solutions` directory within each exercise.
- You should not be checking the solution for an exercise until you finish it!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 06 - repeatString
# Exercise 01 - repeatString

Write a function that simply repeats the string a given number of times:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 07 - Reverse a String
# Exercise 02 - Reverse a String

Pretty simple, write a function called `reverseString` that returns its input, reversed!

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 08 - removeFromArray
# Exercise 03 - removeFromArray

Implement a function that takes an array and some other arguments then removes the other arguments from that array, and returns the resulting array:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 09 - sumAll
# Exercise 04 - sumAll

Implement a function that takes 2 positive integers and returns the sum of every integer between (and including) them:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 10 - leapYears
# Exercise 05 - leapYears

Create a function that determines whether or not a given year is a leap year. Leap years are determined by the following rules:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 11 - tempConversion
# Exercise 06 - tempConversion

Write two functions that convert temperatures from Fahrenheit to Celsius, and vice versa:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 12 - Calculator
# Exercise 01 - Calculator

The goal for this exercise is to create a calculator that does the following:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 13 - Palindromes
# Exercise 02 - Palindromes

Write a function that determines whether or not a given string is a palindrome.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 14 - Fibonacci
# Exercise 03 - Fibonacci

Create a function that returns a specific member of the Fibonacci sequence (series of numbers in which each number is the sum of the two preceding numbers). To learn more about Fibonacci sequences, go to: https://en.wikipedia.org/wiki/Fibonacci_sequence

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 15 - Get the Titles!
# Exercise 04 - Get the Titles!

You are given an array of objects that represent books with an author and a title that looks like this:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise 16 - Find the Oldest
# Exercise 05 - Find the Oldest

Given an array of objects representing people with a birth and death year, return the oldest person.

Expand Down
Loading