From 4df24f3a083b0a58117c6b913a1b7a89d917faa4 Mon Sep 17 00:00:00 2001 From: Muhammed Zakir <8190126+MuhammedZakir@users.noreply.github.com> Date: Mon, 1 Feb 2021 21:42:48 +0530 Subject: [PATCH] Add missing semicolon in Arrow Functions (1-6-12) --- 1-js/06-advanced-functions/12-arrow-functions/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/06-advanced-functions/12-arrow-functions/article.md b/1-js/06-advanced-functions/12-arrow-functions/article.md index f5caeaec..8730277a 100644 --- a/1-js/06-advanced-functions/12-arrow-functions/article.md +++ b/1-js/06-advanced-functions/12-arrow-functions/article.md @@ -52,7 +52,7 @@ let group = { *!* this.students.forEach(function(student) { // Error: Cannot read property 'title' of undefined - alert(this.title + ': ' + student) + alert(this.title + ': ' + student); }); */!* } @@ -87,7 +87,7 @@ For instance, `defer(f, ms)` gets a function and returns a wrapper around it tha ```js run function defer(f, ms) { return function() { - setTimeout(() => f.apply(this, arguments), ms) + setTimeout(() => f.apply(this, arguments), ms); }; }