Javascript is so weird…and so AWESOME.
There are 5 root things that make it this way. If you’re new, learning to grasp these 5 concepts will get you a LONG WAY in your JS programming.
Honestly, there are a LOT of intermediate programmers who don’t understand these concepts. Many coders who know how to work around them don’t really understand how and why it works, they just know do-this-and-it-works.
Here’s video 1, First-Class Functions
Watch the full playlist:
Original source
40 responses to “What Makes Javascript Weird…and AWESOME – Pt 1”
how are you typing into Sublime Text and getting print out results in Google Developer JavaScript Console?
You have made the best tutorial on Javascript that can ever be possible. Thanks lots and Kudos !!
Very simple and clear!
Thank you!
Nice!
This deserves more views and likes.
Amazing job.
You said it right.. @00:55 JavaScrap
😀 Lol. Awesome tutorial though
do you have any tutorials showing how to set up a member signup for a website ? and if not are you by any chance planing to do so at some point ? and is there an online website that contains all the code syntax for js like the msdn website for c# or all the microsoft languages have ?
the best js developer/teacher.
wow lightbulb moment. best explanation of callbacks on the web, better than eloquentjs
do I need to know jQuery first or should I learn it while learning javascript. cuz my professor has us learning only javascript, but this video mentioned jQuery.
Awesome videos!
Btw. where does the name "First Class Function" come from?
Try adding the keyboard shortcuts you use in your videos, for example what you used in this one to comment out multiple lines instantly. That would be the icing on your cake!
0:55 Javascrap 😀
great 🙂
Thanks for this. I've read numerous tutorials on callbacks and this is by far the best explanation I've seen.
I jumped over here from someone on treehouse saying how this is explained better. How can I understand this in 4 minutes after I've been on full stack javascript for like 3 weeks?! wat.
Thank you very much for such a short and very informative video.
I have a small and silly question. I am still wondering, why you are calling it as "First class functions" ? and why not "Higher Order Functions" or something like this ?
Here we can see how powerful JavaScript can be. 😀 Thank you for sharing your knowledge with so many people. God bless you.
what is the use of passing functions as first class objects for doing syncrohonous callbacks , I mean we simply could have done something like
add(first,second);
callback();
why do we need to pass callback function as a parameter?
Callback functions, explained very well!
best explanation I've seen on callback functions. Why am I spending money on books when you're on Youtube!!! Bravo sir!!!
thank you!
thank you 🙂 excellent series!
thank you 🙂 excellent series!
java's crap, LOL joke.
0:55 Java is crap! Peace! =)
The way callback was explained is awesome.
Can i get the index.html script? 🙂
Thanks Will. I have been following u since the day that idiot posted a video about Nodejs is stupid.
Great stuff, thanks.
ahahah U SAID IT MAN: at 0:58 "JavasCRAP" lmao
disclaimer: I don't troll, I just found it funny, I work everyday with JS on Meteor…
lol
Good video series, thanks!
Very good explanation! Thanks.
Great JavaScript tutorials! Thanks a lot!
Conclusion :
HTML for writing
CSS basic design
JS advanced design
PHP is for database connexion
I'm i right?
Hi,
I am interested in your DEV environment. Here are some of my observations, please correct me if I am wrong. It looks like that you are developing in Mac. On the left of your window, you are using sublime text as editor. On the right you are using chrome with developer tool. You are running a web server in localhost. What type of web server you are running? After you change something in editor, the content (e.g. console output) is changed immediately. How do you do that? Do we have similar options to develop in Window? Thanks!
This is something which exists in many other languages, and if someone doesn't understand it – what is the point of using JS? This simple conception here shows very basic stuff which in my opinion must be studied in any university. Sure the syntax is a little bit different but to pass functions to another exists perhaps since OOP is created.
And also I do think there are not so many developers who do not understand it.
I think you can pass functions in C++ as well
How Dow you create a download link
Awesome screencast man!! But what version of Sublime are you using? The interface looks pretty.
Just wanted to say that you videos (especillay the ones on jQuery) helped me a lot! And this 5 episodes series that you are making right now are helping me understand even better how things really work when I write code in JS – so THANKS man!! For me your videos are the best when it comes to frontend dev and even understand some backend concepts. THANKS!
You could also show the function declaration into variable as you mentioned that functions are treated as variables. So something like:
var add = function(a, b) { console.log(a+b); }