Skip to content
Open
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ The idea is to generate each part of the sentence randomly to come up with great

## Hint

1. Create an `app.py` file with one excuse hard-coded in one variable.
1. Create an `app.js` file with one excuse hard-coded in one variable.
2. The excuse must be in a variable:
```js
excuse = 'The dog eat my homework when I finished'
```
3. Using Javascript, create a function that generates and returns a random excuse with the following structure:
```js
let who = ['the dog','my granma','his turtle','my bird'];
let what = ['eat','pissed','crushed','broked'];
let what = ['ate','pissed','crushed','broked'];
let when = ['before the class','right in time','when I finished','during my lunch','while I was praying'];
```
4. To create a consistent excuse, you have to concatenate one item from each array in the proper order.
Expand Down