From 494432ad5374e1c5c5e4e1f11f95d69f39d2e7be Mon Sep 17 00:00:00 2001 From: anithaamarnath Date: Fri, 12 Feb 2021 19:05:45 -0800 Subject: [PATCH] Fixed typo in filter examples --- javascript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript.md b/javascript.md index 38fbfb6..f096084 100755 --- a/javascript.md +++ b/javascript.md @@ -3075,12 +3075,12 @@ console.log(pets) // ['Amelia', 'Ciro', 'Ulises', 'Carlos'] the pets array hastn ```js const greades = [1, 2, 3, 4, 10, 5]; -const goodGreades = grades.filter(function(grade) { +const goodGreades = greades.filter(function(grade) { return grade === 10; }); console.log(goodGreades); // [10] array with only one item -console.log(greades); // [1, 2, 3, 4, 10, 5] origina array +console.log(greades); // [1, 2, 3, 4, 10, 5] original array ``` #### Practice