Skip to content

Commit

Permalink
Update introduction.md (#2448)
Browse files Browse the repository at this point in the history
fix: Introduction, typos
  • Loading branch information
Vinicius-ufsc authored Apr 22, 2024
1 parent b2e065f commit 570a379
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/concept/translation-service/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const myPromise = new Promise(function (resolve, reject) {
if (sampleData[randomNumber]) {
resolve(sampleData[randomNumber]);
} else {
reject('An error occured!');
reject('An error occurred!');
}
});

Expand Down Expand Up @@ -55,13 +55,13 @@ promise1.then(function (value) {
```javascript
const promise1 = new Promise((resolve, reject) => {
throw 'An error occured';
throw 'An error occurred';
});

promise1.catch(function (error) {
console.error(error);
});
// expected output: An error occured
// expected output: An error occurred
```

**finally**
Expand Down

0 comments on commit 570a379

Please sign in to comment.