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.
@AllThingsJavaScript4 жыл бұрын
Thanks and welcome
@AllThingsJavaScript4 жыл бұрын
I have almost 200 available, so you may want to look at whats out there: kzbin.info/door/RQhZGXC0WK85YRXl7nGX0w?view_as=subscriber
@AllThingsJavaScript4 жыл бұрын
Or allthingsjavascript.com/youtube.html
@RameenFallschirmjager4 жыл бұрын
I like your intonation and voice crescendo. In the way that you talk we learners understand the points and concepts better.
@saeedkhan49274 жыл бұрын
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!
@saeedkhan49274 жыл бұрын
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?
@AllThingsJavaScript4 жыл бұрын
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.
@IcarianX5 жыл бұрын
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?
@AllThingsJavaScript5 жыл бұрын
By definition sort passes the first two arguments into a and b. It then continues to move through each element of the array.
@geoffblore3 жыл бұрын
Thanks for the help!
@jasonwilliams_escapeimagery7 жыл бұрын
Was so pleased to find your channel some great topics and presentations thanks.
@dembasiby7 жыл бұрын
Great, simple, and to the point. Thanks!
@dsnow5 жыл бұрын
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.
@RameenFallschirmjager4 жыл бұрын
Thank you sir for your great explanation. Your tutorials are so compelling that I decided to get your udemy courses too!
@AllThingsJavaScript4 жыл бұрын
Thanks for the support!
@bkleinman1234 жыл бұрын
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?
@AllThingsJavaScript4 жыл бұрын
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
@omleen31873 жыл бұрын
Much appreciated for the perfect explanation. Juat one question, please! Which sort algorithm used with javascript sort method? Thanks!
@AllThingsJavaScript3 жыл бұрын
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.
@mj27583 жыл бұрын
QuickSort and InsertionSort, for smaller arrays
@Corythehausbaus5 жыл бұрын
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!!!!
@seenuvasanv7 жыл бұрын
Thanks, really useful..
@Shirokeh7 жыл бұрын
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!
@AllThingsJavaScript7 жыл бұрын
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.
@KevinMullarkey2 жыл бұрын
How would you write this as an 'arrow function'?
@AllThingsJavaScript2 жыл бұрын
things.sort((a,b) => { let x = a.toLowerCase(), y = b.toLowerCase(); if (x < y) { return -1;} if (y < x) { return 1;} return 0; });
@luismuzquiz14007 жыл бұрын
Steven Could you do a video or a UDEMY course on Vue.js for beginners??
@AllThingsJavaScript7 жыл бұрын
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.
@KevinMullarkey2 жыл бұрын
I keep getting an error 'toLowerCase is not a function'
@AllThingsJavaScript2 жыл бұрын
Post your code.
@sarathbabu76893 жыл бұрын
Can able to create my own higher function like map, sort and etc
@AllThingsJavaScript3 жыл бұрын
Yes, anyone can create a higher order function.
@shyarxelil19876 жыл бұрын
why don't you use els if statment?
@AllThingsJavaScript6 жыл бұрын
I do when needed. Are you referring to a specific example?
@DopamineMVWM5 жыл бұрын
why is this guy talking so fucking slow; even on x2 speed its too slow!