Skip to content

Commit

Permalink
Update instructions.md
Browse files Browse the repository at this point in the history
Provide clearer descriptions of the expected output for each function. The original description, especially for exercise one, was highly confusing.
  • Loading branch information
ycklsr authored Jul 23, 2023
1 parent 55f2a65 commit 1b6d7ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises/concept/custom-signs/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ In this exercise you'll be writing code to help a sign company create custom mes

## 1. Build an occasion sign

Implement the function `buildSign(occasion, name)` that accepts a string as the `occasion` parameter and a string holding someone's name as the `name` parameter. The two parameters will be embedded into a template string to output the message on the sign.
Implement the function `buildSign(occasion, name)` that accepts a string as the `occasion` parameter and a string holding someone's name as the `name` parameter. The two parameters will be embedded into a template string to output the message on the sign. The exact expected output is shown in the comment below:

```javascript
buildSign('Birthday', 'Rob');
Expand All @@ -13,7 +13,7 @@ buildSign('Birthday', 'Rob');

## 2. Build a birthday sign

Implement the function `buildBirthdaySign(age)` that accepts an age and based on the age will determine part of the message on the sign. If the age is 50 or older, the sign will refer user as _mature_, else it will refer them as _young_. The exact expected output is shown below:
Implement the function `buildBirthdaySign(age)` that accepts an age and based on the age will determine part of the message on the sign. If the age is 50 or older, the sign will refer user as _mature_, else it will refer them as _young_. The exact expected output is shown in the comment below:

```javascript
buildBirthdaySign(50);
Expand All @@ -25,7 +25,7 @@ buildBirthdaySign(45);

## 3. Build a graduation sign

Implement the function `graduationFor(name, year)` which takes a name as a string parameter and a year as a number parameter and uses string interpolation to create a phrase for a sign that uses a newline to separate the two lines of the message.
Implement the function `graduationFor(name, year)` which takes a name as a string parameter and a year as a number parameter and uses string interpolation to create a phrase for a sign that uses a newline to separate the two lines of the message. The exact expected output is shown in the comment below:

```javascript
graduationFor('Hannah', 2022);
Expand All @@ -36,7 +36,7 @@ graduationFor('Hannah', 2022);

Implement the function `costOf(sign, currency)` which takes a string that holds the contents of the sign and a string that represents the currency.
The sign has a base price of 20 in the given currency. Additionally each letter costs 2. (Whitespaces are included in the calculation.)
The phrase returned includes the cost to create the sign, written with two digits after the decimal point, followed by the currency string.
The phrase returned includes the cost to create the sign, written with two digits after the decimal point, followed by the currency string.The exact expected output is shown in the comment below:

```javascript
costOf('Happy Birthday Rob!', 'dollars');
Expand Down

0 comments on commit 1b6d7ce

Please sign in to comment.