16.7: Array Functions: reduce() – Topics of JavaScript/ES6

In this video, I cover the JavaScript array function reduce().

🎥 Next Video: https://youtu.be/qmnH5MT_luk

🔗 MDN’s Array Documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array

🚂 The Coding Train website: http://thecodingtrain.com/
💖 Support this channel on Patreon: https://patreon.com/codingtrain
🛒 To buy Coding Train merchandise: https://www.designbyhumans.com/shop/codingtrain/
📚 Book recommendations: https://www.amazon.com/shop/thecodingtrain

💻 https://github.com/CodingTrain/Rainbow-Code

🎥 For an Introduction to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
🎥 For More Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

🔗 https://p5js.org/
🔗 https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

source by The Coding Train

nodejs programming

Mourad ELGORMA

Fondateur de summarynetworks, passionné des nouvelles technologies et des métiers de Réseautique , Master en réseaux et système de télécommunications. ,j’ai affaire à Pascal, Delphi, Java, MATLAB, php …Connaissance du protocole TCP / IP, des applications Ethernet, des WLAN …Planification, installation et dépannage de problèmes de réseau informatique……Installez, configurez et dépannez les périphériques Cisco IOS. Surveillez les performances du réseau et isolez les défaillances du réseau. VLANs, protocoles de routage (RIPv2, EIGRP, OSPF.)…..Manipuler des systèmes embarqués (matériel et logiciel ex: Beaglebone Black)…Linux (Ubuntu, kali, serveur Mandriva Fedora, …). Microsoft (Windows, Windows Server 2003). ……Paquet tracer, GNS3, VMware Workstation, Virtual Box, Filezilla (client / serveur), EasyPhp, serveur Wamp,Le système de gestion WORDPRESS………Installation des caméras de surveillance ( technologie hikvision DVR………..). ,

21 réflexions sur “16.7: Array Functions: reduce() – Topics of JavaScript/ES6

  • juillet 21, 2021 à 9:58
    Permalien

    these are great videos. you're goofy as all can be, but the way you make errors and then go through why the error is there and you explain the error and also explain the fix. This helps me out so much. good work

    Répondre
  • juillet 21, 2021 à 9:58
    Permalien

    I love how you're learning with us! You always say exactly what I'm thinking

    Répondre
  • juillet 21, 2021 à 9:58
    Permalien

    I used the reduce function.
    This is my code
    var numbers = [175, 50, 25];

    document.getElementById("demo").innerHTML = numbers.reduce(myFunc);

    function myFunc(a, num, idx, arr) {

    console.log(a);

    return a + num;

    }

    OUTPUT: 250
    but in console, I'm getting 175, 225 only.
    Why do not I get the last value iteration's console.log value as 250?

    Répondre
  • juillet 21, 2021 à 9:58
    Permalien

    I really liked this video, already watched it a few times all the way through. Thanks for the great explanations, it's great how you show your train of thought and all the steps. Your level of crazy is much appreciated also.

    Répondre
  • juillet 21, 2021 à 9:58
    Permalien

    Far way the best teaching videos I ever seen! You explain in such funny way!!
    I love your videos

    Répondre
  • juillet 21, 2021 à 9:58
    Permalien

    his kookiness and everything annoyed me at first but damn this is how i want things explained to me from now on because i fully understood reduce now! hahaha

    Répondre
  • juillet 21, 2021 à 9:58
    Permalien

    The code get's shorter but it gets weirder to understand. At this point, it's not really beginner-friendly because it goes beyond just the English language and uses a lot of symbols. I think it's rude to make a programmer take too long to break down the code. I like plain English where if you just read, you get it without thinking. Imagine using these functions with other complicated functions that are present in many projects then it becomes a nightmare to understand. It's already difficult enough to understand those complex ones while we are just using simple English language kind of coding with for, foreach, if/else. Now we add an extra layer on top just to save space. It definitely is something fascinating to see but from a practical standpoint, the simpler it is to read, the better the code is. However, my opinion is coming from someone who hasn't got a lot of practice using these new syntaxes. So, I think people can get used to these new syntaxes and understand them fluidly without thinking too, and then that is when these syntaxes would shine.

    Répondre

Laisser un commentaire