From 698f0231cc14da9f640e8f22df309699bc82a22a Mon Sep 17 00:00:00 2001 From: Ahmad Shahd <48631752+ahmedshahd@users.noreply.github.com> Date: Sat, 20 Feb 2021 19:49:30 +0200 Subject: [PATCH] update iterators.md challenge 3 editing wrong object literal --- concepts/Iterators.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/concepts/Iterators.md b/concepts/Iterators.md index fa5f2a5..65e77d3 100644 --- a/concepts/Iterators.md +++ b/concepts/Iterators.md @@ -47,14 +47,14 @@ function nextIterator(arr) { let i = 0; const inner = { - const next = () => { + next: () => { const element = arr[i]; i++; return element; } } - + return inner; } @@ -223,4 +223,4 @@ async function f(noun) { } f("dog"); -``` \ No newline at end of file +```