Skip to content

Commit f3dc5d1

Browse files
authored
Merge pull request javascript-tutorial#2484 from MuhammedZakir/patch-1
Add missing semicolon in Arrow Functions (1-6-12)
2 parents ebd0d11 + 4df24f3 commit f3dc5d1

File tree

1 file changed

+2
-2
lines changed
  • 1-js/06-advanced-functions/12-arrow-functions

1 file changed

+2
-2
lines changed

1-js/06-advanced-functions/12-arrow-functions/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ let group = {
5252
*!*
5353
this.students.forEach(function(student) {
5454
// Error: Cannot read property 'title' of undefined
55-
alert(this.title + ': ' + student)
55+
alert(this.title + ': ' + student);
5656
});
5757
*/!*
5858
}
@@ -87,7 +87,7 @@ For instance, `defer(f, ms)` gets a function and returns a wrapper around it tha
8787
```js run
8888
function defer(f, ms) {
8989
return function() {
90-
setTimeout(() => f.apply(this, arguments), ms)
90+
setTimeout(() => f.apply(this, arguments), ms);
9191
};
9292
}
9393

0 commit comments

Comments
 (0)