I studied Javascript for 1 year or more and never fully understood the Reduce method, just for basic things like sum, but this explanation was monstrous. Thank you Colt Steele
Hey Colt, I firmly believe that the name you give your child plays a significant role in their future success. With that in mind, your parents must have really wanted the best for you. Your new subscriber and fan, Dick Everhard.
Another great use case for .reduce() is that you can use it to build up sequences of strings. If you think of code itself as just being a sequence of strings, then it's possible to use reduce to automate writing code. ☺️
Hello Colt i started your web developer bootcamp and im so exited to do it, i'll tell u when i finish it and try to get a job. pd(i love how you explain all things)
Reduce object section (8.04min): A weak comparison is made with the equality (==) operator where the "null" value is seen in the same way as an "undefined" value. If we use the strict equality comparison (===) we see that with "null" we have problems while with undefined we do not. I think it is always a good idea to use strinct equality comparisons instead of weak ones, also to avoid wasting time in debugging. I always follow you when I can Cold ;)
When would you want to use this vs writing your own recursive function? They both act in a similar way and in the data structure course, a lot of the recursion examples were similar to these reduce ones
My question is, why lot of people do not recommend using reduce. I saw lot of articles, even lint configuration when it yells when using reduce. What are your thoughts on this?
Thank you so much Colt! Love your courses on Udemy, you are one of the best teacher I ever encountered, would you consider do some tutorials for PHP? since I would like to be freelancing for website development, wordpress is still widely used... hope I can get some response from you, thanks!
Hi Colt. I would like to ask for advice on which course is better to explain Java script The Web Developer Bootcamp 2022 or The Modern Javascript Bootcamp Course (2022)?