forEach Array Method | JavaScript Tutorial

preview_player
Показать описание

In this tutorial, we're going to learn about the #forEach #JavaScript #Array Method and how we can use it to call a provided function once for each element inside the array.

---
Support my channel:
Thank you! 🙏

---

---
Follow me on:
Рекомендации по теме
Комментарии
Автор

For anyone else like me who didn't understand the last Object loop:
The last part if (count[item]) is true if the object has a property and then it goes to the condition of incrementing the property value ++.
If it is false then it's assigned that property with the value 1.

fahadzakir
Автор

Just found your tutorials, easy to understand, Thank you.

rotrose
Автор

This helped me to build a solution for returning a max char from an array. Thnx for this tutorial and whole playlists.

nithish_raina
Автор

Multiple uploads and they are all very clear and concise.

MrRafael
Автор

this kind of videos are the best when u are beginner, thank u

a_z
Автор

hey florin, i'm new in javascript n i want to become expert in javascript, i have seen first lecture on array on youtube and this is you, you have done a wonder full job, very easy understandable code, now i'm thinking i should follow the whole this video series..! keep going like this

HamzaKhan-ixgn
Автор

Hi Florin, thanks for your great tutorial. In the end of the video, inside the if parentheses, it's only count[item], normally inside if parentheses would be conditions with comparison operators, so I'm not quite understand what does if (count[item]) stands for, could you explain more for this ?

weilin
Автор

How you using vscode terminal to output those javascript code?

techno_abhishek
Автор

Hi Florin, thanks for the good job you are doing. does ForEach also work like .reduce?

reedreal
Автор

Thank you Sir, your tutorial is very clear and show that we can use the method in different way, thank you so much Sir

siachmad
Автор

I am not getting my console.log value in terminal. How can I get my values displayed in the

rajkiranchaudhary
Автор

Hi, how about a bit deeper dive of why async won't work inside forEach. I just know the fact but would like to know the explanation from you

gayathriv
Автор

You are the BEST... That's the fact

webgraphics
Автор

One doubt, why do we use count[item] instead of count.item even if it's an object?

MaxProgramming
Автор

Nice explainer, buy how you using vscode terminal to output those javascript code?

nagendrach
Автор

JS daily pill! Keep up the good work! 🙏

antochitic
Автор

thank you for this great explanation <3

Yakuzanis
Автор

Nice break down currently in a boot camp and this will definitely be of use

justinxtenreal
Автор

can you tell me how is your output is showing in the terminal

RahulRai-vwdw
Автор

Hi, thanks for a great tutorial and I have a small question. How can I get the same result in the terminal - I mean without an unnecessary code (like: $ node "c:\Users\thomas\Desktop\Exercises\script.js"), only pure result, like on your video. Regards, Thomas.

MrTomequ