Higher Order Functions: A JavaScript Strong Point

  Рет қаралды 26,902

All Things JavaScript, LLC

All Things JavaScript, LLC

Күн бұрын

Пікірлер
@kc2838
@kc2838 4 жыл бұрын
You teach very clearly and to the point. That's a skill not a lot of youtubers have. Subscribed and waiting for more javascript videos.
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
Thanks and welcome
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
I have almost 200 available, so you may want to look at whats out there: kzbin.info/door/RQhZGXC0WK85YRXl7nGX0w?view_as=subscriber
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
Or allthingsjavascript.com/youtube.html
@RameenFallschirmjager
@RameenFallschirmjager 4 жыл бұрын
I like your intonation and voice crescendo. In the way that you talk we learners understand the points and concepts better.
@saeedkhan4927
@saeedkhan4927 4 жыл бұрын
I really love your teaching style. Just started Lambda school, and this is really helping me understand the content and material that is being taught. Thank you!
@saeedkhan4927
@saeedkhan4927 4 жыл бұрын
Just one question, I was following along with your code and I am getting a syntax error. Is this updated to ES6 or does this only apply to ES5 - or does it even matter?
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
Higher order functions have been a part of JavaScript from early on and is still an important aspect of it. So doesn't really matter was ECMAScript release. Post your code if you are still getting an error.
@IcarianX
@IcarianX 5 жыл бұрын
I have no idea where the arguments "a" or "b" are. How does the program determine what variables are passed in as "a" and "b" and what are they?
@AllThingsJavaScript
@AllThingsJavaScript 5 жыл бұрын
By definition sort passes the first two arguments into a and b. It then continues to move through each element of the array.
@geoffblore
@geoffblore 3 жыл бұрын
Thanks for the help!
@jasonwilliams_escapeimagery
@jasonwilliams_escapeimagery 7 жыл бұрын
Was so pleased to find your channel some great topics and presentations thanks.
@dembasiby
@dembasiby 7 жыл бұрын
Great, simple, and to the point. Thanks!
@dsnow
@dsnow 5 жыл бұрын
For reuse and less coupled code, you could define a function expression that performs the comparison that returns a.toLowerCase() - b.toLowerCase() and then pass that function into sort. Nice tutorial.
@RameenFallschirmjager
@RameenFallschirmjager 4 жыл бұрын
Thank you sir for your great explanation. Your tutorials are so compelling that I decided to get your udemy courses too!
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
Thanks for the support!
@bkleinman123
@bkleinman123 4 жыл бұрын
How did you know that the sort function takes in another function that has the rules of returns left first if negative number and so on? Is that in a javadoc type thing online that I can look up?
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
I don't remember how I first learned it, but I think the MDN pages are great for this kind of thing: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
@omleen3187
@omleen3187 3 жыл бұрын
Much appreciated for the perfect explanation. Juat one question, please! Which sort algorithm used with javascript sort method? Thanks!
@AllThingsJavaScript
@AllThingsJavaScript 3 жыл бұрын
Good question. I'm not sure which one and it really probably depends on the JavaScript Engine implementation. So technically a browser could use a different algorithm than another one.
@mj2758
@mj2758 3 жыл бұрын
QuickSort and InsertionSort, for smaller arrays
@Corythehausbaus
@Corythehausbaus 5 жыл бұрын
dude, so many people doing tutorials talk so fast, monotone, and sounds the same the entire time. Not you! Please continue to talk dynamically and really emphasise on the key words!!!!
@seenuvasanv
@seenuvasanv 7 жыл бұрын
Thanks, really useful..
@Shirokeh
@Shirokeh 7 жыл бұрын
Thanks for the content. How is progress on the asynchronous course? Have seen it in the status of upcoming and projected release for September for so long!
@AllThingsJavaScript
@AllThingsJavaScript 7 жыл бұрын
Great Question! I need to go in an update that page. I haven't been able to start that one yet, but it is the next course once I finish up two smaller items I'm working on. I'm adding a section on functional programming to the advanced course and a course on regular expressions. When projects come along, they take priority. There has been a lot of that lately that has slowed me down on the courses.
@KevinMullarkey
@KevinMullarkey 2 жыл бұрын
How would you write this as an 'arrow function'?
@AllThingsJavaScript
@AllThingsJavaScript 2 жыл бұрын
things.sort((a,b) => { let x = a.toLowerCase(), y = b.toLowerCase(); if (x < y) { return -1;} if (y < x) { return 1;} return 0; });
@luismuzquiz1400
@luismuzquiz1400 7 жыл бұрын
Steven Could you do a video or a UDEMY course on Vue.js for beginners??
@AllThingsJavaScript
@AllThingsJavaScript 7 жыл бұрын
That would probably be a course or maybe a series of KZbin videos to get one started. But I will add it to the list.
@KevinMullarkey
@KevinMullarkey 2 жыл бұрын
I keep getting an error 'toLowerCase is not a function'
@AllThingsJavaScript
@AllThingsJavaScript 2 жыл бұрын
Post your code.
@sarathbabu7689
@sarathbabu7689 3 жыл бұрын
Can able to create my own higher function like map, sort and etc
@AllThingsJavaScript
@AllThingsJavaScript 3 жыл бұрын
Yes, anyone can create a higher order function.
@shyarxelil1987
@shyarxelil1987 6 жыл бұрын
why don't you use els if statment?
@AllThingsJavaScript
@AllThingsJavaScript 6 жыл бұрын
I do when needed. Are you referring to a specific example?
@DopamineMVWM
@DopamineMVWM 5 жыл бұрын
why is this guy talking so fucking slow; even on x2 speed its too slow!
Understanding JavaScript Callbacks
15:39
All Things JavaScript, LLC
Рет қаралды 115 М.
JavaScript Question: Why are JavaScript Functions First Class?
10:33
All Things JavaScript, LLC
Рет қаралды 17 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Higher-order Functions for OO Programmers | Rock the JVM
17:20
Rock the JVM
Рет қаралды 4,9 М.
16.5: Higher Order Functions in JavaScript - Topics of JavaScript/ES6
16:21
Understanding Recursion: A JavaScript Example
14:59
All Things JavaScript, LLC
Рет қаралды 31 М.
JavaScript Problem: Searching an Array for a Value
13:43
All Things JavaScript, LLC
Рет қаралды 38 М.
Demystifying JavaScript Closure
16:08
All Things JavaScript, LLC
Рет қаралды 27 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 676 М.
JavaScript Question: What is a Prototype?
10:48
All Things JavaScript, LLC
Рет қаралды 39 М.
JavaScript Higher Order Functions & Arrays
34:56
Traversy Media
Рет қаралды 990 М.
The 10 Days of JavaScript: Day 6 (Higher-Order Functions)
19:05
LearnWebCode
Рет қаралды 48 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН