Комментарии:
thank you for this great explanation <3
ОтветитьI've been hearing a lot of.... distain for the "forEach" method. Especially in the context of asynchronous code.
Not an expert, but be careful using this method.
Hi Florin, can you do a similar playlist of videos as you have for array methods but for strings? Thanks!
Ответитьthanksss
ОтветитьThanks a lot. I get it now. I’m currently using ZTM
ОтветитьNice explanation! It is is exactly that I was after🤓
Ответить.
ОтветитьThanks!
ОтветитьThank you so much!!!
Ответитьyour code could be done in almost only two lines, but thank you so much.
ОтветитьI found an easier way, const countries = ['Argentina', 'Brazil', 'Argentina', 'Portugal', 'Brazil'];
// Keep track count of every country
let count = {};
countries.forEach((country) => {
count[country] = (count[country] || 0) + 1;
})
console.log(count);
thank you very much for this very clear explanation! it really helped me a lot!!!
Ответитьif foreach doesnt return anything how can it be used? Thanks
Ответить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 ?
Ответитьcan you tell me how is your output is showing in the terminal
Ответитьgot yo million yet yo
ОтветитьHi plss reply me i need help
Ответитьvery good content theacher !!! thaks
Ответитьlet sum = 0;
number.forEach(function(value){
sum += value;
})
console.log(sum);
this would generate the same answer, is there any thing I should know about using it?
Everywhere I read about forEach it says that the method does not return anything but in this tutorial the sum was clearly returned. WUT??? Am I missing something here?
Ответитьlove you florin
ОтветитьThanks for the Tutorial.
But please can I send you forEach code I wrote that won't work at all? Maybe you can show me what am doing wrong.
thanks man
Ответитьplease , what addon i have to install to run JS in VS code?
ОтветитьNice explainer, buy how you using vscode terminal to output those javascript code?
ОтветитьHow do you clean the terminal?
Ответитьthis was very helpful, i enjoyed every moment of the tutorial and i understand array functions better now. just 1 question how do I display my console log in vs code.
ОтветитьHow to download this coding platform?
ОтветитьLearned some new stuff with the object counter, nice!
ОтветитьHow to get output like him ?
ОтветитьNice break down currently in a boot camp and this will definitely be of use
ОтветитьWhere are you from?
Ответитьthanks
ОтветитьYou Are Amazing Thank You A Lot
Ответитьthank you rebeccaPurple man
Ответитьوری گود
Ответить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.
Thank you Sir, your tutorial is very clear and show that we can use the method in different way, thank you so much Sir
ОтветитьThis helped me to build a solution for returning a max char from an array. Thnx for this tutorial and whole playlists.
ОтветитьI personally hate Javascript it's so loosely typed, with no structure in mind Garbage!!
ОтветитьYou are the BEST... That's the fact
Ответитьvip pro
Ответитьthank you for this tuto , how can i use the terminal like that please
Ответить"let count = {}" means that you declare a variable with an undefined value?
Ответить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.
ОтветитьI am thankful to you. Great video.
Ответитьhey pls help me.... i dnt understand the let count={} and how the count[item]++ works ?
Ответить