From de63d5872a374a2d0733acf2900215211c6432f6 Mon Sep 17 00:00:00 2001 From: CodeGuage <99533223+codeguage-code@users.noreply.github.com> Date: Sun, 4 Sep 2022 16:28:57 +0500 Subject: [PATCH] Added resources to learn about iterators (#1669) --- .../content/114-javascript-iterators-and-generators.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/content/roadmaps/106-javascript/content/114-javascript-iterators-and-generators.md b/content/roadmaps/106-javascript/content/114-javascript-iterators-and-generators.md index 2c514d4fc..e70af0d56 100644 --- a/content/roadmaps/106-javascript/content/114-javascript-iterators-and-generators.md +++ b/content/roadmaps/106-javascript/content/114-javascript-iterators-and-generators.md @@ -1 +1,8 @@ -# Javascript iterators and generators \ No newline at end of file +# Javascript Iterators and Generators + +Iterators and generators, introduced into JavaScript with ECMAScript 6, represent an extremely useful concept related to iteration in the language. Iterators are objects, abiding by the iterator protocol, that allow us to easily iterate over a given sequence in various ways, such as using the `for...of` loop. Generators, on the other hand, allow us to use functions and the `yield` keyword to easily define iterable sequences that are iterators as well. + +Free Content +Introduction to Iterators - Advanced JavaScript +A Detailed Discussion on Iterators - Advanced JavaScript +What Exactly Are Generators? - Advanced JavaScript