Thank you for this video because it explains clearly what each parameter does. For example, you left the (value, index, arr) in the double function even though this function might only use the index or the value. As a beginner, I need consistency; maybe I will only use the necessary parameters as I get more comfortable.
I learn javascript while looking your tutorials and english while listening you and translate unknown words. Great that your pronounce is good profit :D
const str_numbers = ["21", "32", "45", "76", 34, 56, "78"]; const int_numbers = str_numbers.map(item=> parseInt(item)); console.log(int_numbers); /// we can also use parseInt to convert str to int const new_str_numbers = int_numbers.map(item => item.toString()); console.log(new_str_numbers) /// can also convert int to str using toString() method
Florin Pop thank you very much, I will be waiting for the video. currently I am using google chrome console and its really pain when studying. Really appreciated
First of all - Please stop using "var", change it to "const" (in this case). The issue with this code is that "totalprodsvalue" is an array of objects, and when you try to log it directly using document.write or console.log, it will be displayed as [object Object],[object Object],[object Object],[object Object],[object Object], which doesn't provide useful information. To fix this, you need to iterate over "totalprodsvalue" and log each object's properties individually, or use console.table() to display the array of objects in a tabular format.
Check out the other videos in the JavaScript Array Methods series: ruclips.net/p/PLgBH1CvjOA62PBFIDq55-S6Beivje30A2
Quick and clear to the dot.. Thanx a lot !! Gotta go and practice now..
Thank you for this video because it explains clearly what each parameter does. For example, you left the (value, index, arr) in the double function even though this function might only use the index or the value. As a beginner, I need consistency; maybe I will only use the necessary parameters as I get more comfortable.
Finally I understood what map Array means, and how it works ... Thank you, thank you very much Florin!
I learn javascript while looking your tutorials
and english while listening you and translate unknown words. Great that your pronounce is good
profit :D
same!
You deserve more likes and suscriptions. Thank you
You make me understand array methods, thank you guy.
Your way of teach are fantastic.
these lessons are amazing.
This was amazing! Please do more higher order function explanations
I’ll have them all on my channel by tomorrow 😄
Good, clear and concise explanation!
I’m glad you like it
Thank you, great playing with object properties, there is nice practical value in the exercise.
I like your tutorials. They are clear and beginner-friendly.
True that!
const str_numbers = ["21", "32", "45", "76", 34, 56, "78"];
const int_numbers = str_numbers.map(item=> parseInt(item));
console.log(int_numbers); /// we can also use parseInt to convert str to int
const new_str_numbers = int_numbers.map(item => item.toString());
console.log(new_str_numbers) /// can also convert int to str using toString() method
Thank you so much. Especially that last example. I had a coding problem that was a little tough but you just made it 10x easier.
Very glad to hear that! 😇
So clear and helpful, thank you! I like how you began with a really simple example, it helped me keep up and catch on.
A very good teacher , love you .
Love you too
just found your tutorials and you may very much be the Goat #subbed
Thank you, but I’m far from being it 😄
Your explanations are amazing best explanation I have seen yet. this was really easy to grasp I was foggy on map before this video.
Great video.. specially the practical examples are very helpful..tnx
Your welcome 🙏
Simple and made a lot of sense, thanks Florin. Also i know you from Traversy's 50 JS projects course he mentioned you.
Happy you enjoyed it 😃
thank you for the explanation, your video was the turning point for me. cheers!
Really happy it helped!
I'm going to need this for JS revision for sure 🤩🤩🤩
Thanks this was helpful❤
Glad it was helpful!
Very good examples c:
Thanks. Like the simple and useful ways you explain concepts for beginners...
You are easily explain! Thank you!)
really helpful video! thanks also for explaining index :)
your tutorial is so much helpful
Make more tutorial
Great tutorials, thanks!
thank you Florin Pop!
good job with the video ;)
Thanks a lot bro, great help
Thank you for the great video!
how do you make the code execute in the terminal at the next second? i always do node . everytime when i updated my code ._.
Thanks Awesome tutorial Florin.. 😊
How to print value in DOM???
thank you
could you please let know how to enable the node js terminal to display the console.log. thanks
I’m preparing a video about that. Will post soon
Florin Pop thank you very much, I will be waiting for the video. currently I am using google chrome console and its really pain when studying. Really appreciated
Got introduced to REST API! #learnbydoing
May I know how you run code in the vs code terminal?
With nodemon
@@FlorinPop thank you
@@FlorinPop ok but how you make nidemon not always prefix with the silly [nodemon] and other msgs of restarting
Hello guy! How to clean the terminal look like that ?
create a full javascript searies bro your video is is such a great.but create video with this method as you apply in this video.
How are you running js in terminal like this? Looks like you are using node as a shell. Plz tell me how.
Nodemon ☺️
Thankyou
You’re welcome 😊
If I will purchase your course is there someone to guide or talk about query or solution ?
Join our discord ☺️
hello can you please explain how can i use terminal in this way
I made a video about that a while ago after the JS array series, check it out on my channel.
@@FlorinPop thank you so much i really appreciate keep your great job
var totalprodsvalue = products.map(item => ({
name: item.name,
Total: item.price * item.count
}));
document.write(totalprodsvalue);
I tried to follow the same code but It prints [object, object]. Did i miss something?
remove banana bracjet in arrow function
First of all - Please stop using "var", change it to "const" (in this case).
The issue with this code is that "totalprodsvalue" is an array of objects, and when you try to log it directly using document.write or console.log, it will be displayed as [object Object],[object Object],[object Object],[object Object],[object Object], which doesn't provide useful information.
To fix this, you need to iterate over "totalprodsvalue" and log each object's properties individually, or use console.table() to display the array of objects in a tabular format.
map vs forEach?
Map returns an array whereas forEach don't
nu inteleg
Ce nu intelegi?
Good Tutorial! Thanks!
Got introduced to REST API! #learnbydoing