How To Use Iterators in JavaScript - Iterate Over Arrays and Collections

  Рет қаралды 37,375

dcode

dcode

Күн бұрын

Пікірлер: 40
@nikolajacques5982
@nikolajacques5982 3 жыл бұрын
Not an easy topic. After struggling with it and making it out on the other side, it seems clear to me that a lot of thought was put into making this tutorial. Thanks!
@honeypot11
@honeypot11 Жыл бұрын
the BEST video on this topic imo
@DanielZotti
@DanielZotti 3 жыл бұрын
Nice and clean explanation!
@jevforsberg4766
@jevforsberg4766 3 жыл бұрын
Fascinating and educational. Thanks for this!
@hansschenker
@hansschenker 3 жыл бұрын
finally understood Iterator! Thank's a lot for publishing!
@3Shivs
@3Shivs 4 ай бұрын
Thanks man, learned something new today
@dcode-software
@dcode-software 4 ай бұрын
Glad to hear it!
@ahora1026
@ahora1026 5 жыл бұрын
I'm first? Wow. Even though I know about iterators it's nice to listen!
@bengbeng2005
@bengbeng2005 2 жыл бұрын
waw, your way of explaining things is very impressive, you make things easier, thank you. (by the way, are you from Africa because your accent sounds like one)
@gauravsrivastav9648
@gauravsrivastav9648 3 жыл бұрын
Very good explanation mate
@rashidsun
@rashidsun 4 жыл бұрын
Perfect explanation of not easy issue!
@dcode-software
@dcode-software 4 жыл бұрын
Glad you liked it mate
@kyleg6790
@kyleg6790 4 жыл бұрын
Thanks for this. Can you explain what you mean when you say numbers[Symbol.iterator]() is the same as numbers["length"]()? Do you mean numbers[i]?
@kulkalkul
@kulkalkul 4 жыл бұрын
Well, that means it is one of object properties, so you can access it as you access length.
@jaisah510
@jaisah510 3 жыл бұрын
Your keyboard made more noise then you😅 Btw nice explanation.
@dcode-software
@dcode-software 3 жыл бұрын
Lol thanks
@guidoglielmi7992
@guidoglielmi7992 2 жыл бұрын
Is the iterator object a generator function?
@AleksandrStrizhevskiy
@AleksandrStrizhevskiy 2 жыл бұрын
I am getting an error: cannot read properties of undefined. I will just loop differently through the data structure but it is strange that in your video the system goes through the undefined value without a problem but I get an error.
@keepitplainsimple1466
@keepitplainsimple1466 4 жыл бұрын
You explained it really nice But I didn't get it completely 😅
@wagnerpedroo
@wagnerpedroo Жыл бұрын
foi simples sua explicação, mas uma pergunta que tenho é: como posso usar o iterador na prática
@tamikuru7936
@tamikuru7936 2 жыл бұрын
I am SO confused about the last 2 minutes. Why is it "new numberList()[Symbol.iterator]()" and not "new numberList().[Symbol.iterator]()"? (
@SMBLtheGamer
@SMBLtheGamer 5 жыл бұрын
I thought iterators were just the regular "for loops, apparently JavaScript finally has a for each loop like function.
@mertarslan7269
@mertarslan7269 2 жыл бұрын
best video
@jeanclaudecamara9505
@jeanclaudecamara9505 Жыл бұрын
Nice❤
@Rebel8MAC
@Rebel8MAC 3 жыл бұрын
"so, you might be quite impressed with how it works, but also a bit curious...".... No, I'm curious about WHY it exists. It seems like extra complexity and typing for going through a for loop? Why would I even use this???
@bidabida1399
@bidabida1399 2 жыл бұрын
iterator explains how loop like for-each iterate over data structures
@miggu
@miggu Жыл бұрын
Seemingly it's like inventing the wheel, however ..... consider it as the foundation of how iterable data composites work in javascript, it's how things work, not what you must necessarily use. Create an array in the console, check the prototype of that array, now : arr.__proto__[Symbol.iterator]() , yes return a function from that function, and inspect it. It exists because it's how it was conceived to work , would you ever use it? I doubt it.
@sekemilo
@sekemilo 7 ай бұрын
Exactly my concern but @miggu has given a satisfying answer
@totfosk
@totfosk 2 жыл бұрын
just WOW
@angelortega4
@angelortega4 5 жыл бұрын
Hi, excuse me, do you have any video where they teach how to import a csv file and display the data in an html table? to then be stored in a database. In java. Greetings.
@OfficialOffsideBall
@OfficialOffsideBall 4 жыл бұрын
use AJAX jquery
@isi1044
@isi1044 2 жыл бұрын
whats the point of an Iterators?
@mahamamjad1739
@mahamamjad1739 3 жыл бұрын
You said "ITERATOR" and I heard "CINDERALLA".
@pencilpopart
@pencilpopart 4 жыл бұрын
I deem this video completely unhelpful, because after 10 minutes I still didn't understand a word of it.
@thejewelershand
@thejewelershand 3 жыл бұрын
For me it was perfect
@Rebel8MAC
@Rebel8MAC 3 жыл бұрын
It seems to be a pattern for almost all coders fall into; they try to teach code to beginners but they explain things as if the person watching already knows many of the concepts of code and even thinks like a coder. So a lot of the videos are missing context for beginners and we can't even start because we dont have the right software or file not pointing to the correct location but we don't even know it's wrong because they skipped over that part. It's frustrating but I'm sure it's unintentional but it's weird how it in happens almost exclusively in the field of coding.
@bengbeng2005
@bengbeng2005 2 жыл бұрын
@@Rebel8MAC I found this tutorial the best one that explains iterator, his way of teaching is very good, and yes most tutorials on youtube assume you have some programming background, but you can find books that go from scratch
@mauricioperez3645
@mauricioperez3645 Жыл бұрын
why all code courses have this annoying keyboard click always so loud, it's a big distraction.
@itsnobledean9450
@itsnobledean9450 Жыл бұрын
To me, he's just all over the place with his explanations. This is not the video for me. I was confused up until I left.
How to use Generator Functions in JavaScript - Tutorial
18:47
JavaScript Array Mastery: Tips, Tricks & Best Practices
1:02:49
Envato Tuts+
Рет қаралды 28 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 254 М.
What are JavaScript Generators and Iterators?
10:28
Andrew Burgess
Рет қаралды 7 М.
#31 JS Array Iterator Methods | JavaScript Full Tutorial
18:38
Dev Dreamer
Рет қаралды 11 М.
ES2015 Iterators and Generators - Dan Shappir
44:45
Wix Engineering Tech Talks
Рет қаралды 8 М.
Inheritance in JavaScript - Prototypal Inheritance tutorial
20:06
The Power of JS Generators by Anjana Vakil
36:10
JSConf
Рет қаралды 169 М.
Why Is Array/Object Destructuring So Useful And How To Use It
13:24
Web Dev Simplified
Рет қаралды 431 М.
JavaScript Classes Tutorial
1:01:29
freeCodeCamp.org
Рет қаралды 291 М.
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 565 М.
Iterators in JavaScript using Quokka.js
21:07
Fun Fun Function
Рет қаралды 111 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН