ColorCode
ColorCode
  • Видео 104
  • Просмотров 2 852 568
7 Benefits of First-Class Functions - JavaScript Tutorial
Functions in JavaScript are First-Class. But what does that mean? In this video I explain what the term means, why it matters, and 7 benefits of functions due to their First-Class nature, including examples. Enjoy!
This is episode 17 of 20 things Javascript Developers Should Know But Probably Don't.
00:00:00 Intro
00:01:22 What are First-Class Functions?
00:02:12 #1 Assign them to variables
00:05:04 #2 Pass them in as argument
00:08:41 #3 Return them from other functions
00:13:05 #4 Currying
00:18:01 #5 Closures
00:18:55 #6 Store them in data structures
00:21:35 #7 Anonymous Functions
00:22:50 Summary
00:24:00 Outro
ColorCode Etsy Merchandise store:
www.etsy.com/shop/ColorCodeStore
Full playlist here: r...
Просмотров: 4 551

Видео

JavaScript Pure Functions - Tutorial for beginners
Просмотров 10 тыс.4 месяца назад
Pure Functions are an essential ingredient of functional programming, regardless of the language. In this video we cover the two major rules that make any function pure, benefits of pure function, as well as why some functions can't be pure. Let's have some fun yo! This is episode 16 of 20 things Javascript Developers Should Know But Probably Don't. 00:00:00 Intro 00:01:15 What is a pure functi...
DOM API - JavaScript Tutorial for beginners
Просмотров 28 тыс.8 месяцев назад
JavaScript DOM API, what it is, how to use it, and why use it at all?! It's used by ReactJS, AngularJS, VueJS, jQuery, and most other JS libraries to manipulate the DOM. This is episode 15 of 20 things Javascript Developers Should Know But Probably Don't. 00:00:00 Intro 00:01:47 What is the DOM API? 00:03:52 Setup 00:04:36 Document interface 00:05:40 Click eventListener 00:06:30 Head, Body and ...
Fetch API - JavaScript Tutorial for beginners
Просмотров 91 тыс.Год назад
JavaScript Fetch API, how to use in with Promises, how it is different from XHR, and why use it?! This is episode 14 of 20 things Javascript Developers Should Know But Probably Don't. 00:00:00 Intro 00:00:45 What is Fetch? 00:01:51 Request() 00:02:52 Response() 00:04:09 🔴 Demo: Simple GET 00:08:12 🔴 Demo: Simple GET with Parameters 00:10:58 Request Parameters 00:12:10 Headers 00:12:49 🔴 Demo: H...
Async Await vs. Promises - JavaScript Tutorial for beginners
Просмотров 65 тыс.Год назад
JavaScript Async Await, how to use them with Promises, and more importantly why?! This is episode 13 of 20 things Javascript Developers Should Know But Probably Don't. 00:00:00 Intro 00:01:04 How Promises work 00:02:18 Await! 00:04:00 Async! 00:05:55 Async/Await vs. then block 00:07:12 Real example with fetch() 00:10:58 6 important points about Async/Await 00:14:20 Error Handling with try/catch...
JavaScript Promises -- Tutorial for Beginners
Просмотров 108 тыс.Год назад
JavaScript Promises Tutorial for Beginners
Async JavaScript & Callback Functions -- Tutorial for Beginners
Просмотров 82 тыс.Год назад
Async JavaScript & Callback Functions Tutorial for Beginners
JavaScript Value vs. Reference (Primitives vs. Objects) -- Tutorial for Beginners
Просмотров 28 тыс.2 года назад
JavaScript Value vs. Reference (Primitives vs. Objects) Tutorial for Beginners
JavaScript Closures Tutorial (Explained in depth)
Просмотров 63 тыс.2 года назад
JavaScript Closures Tutorial (Explained in depth)
Higher Order Functions - JavaScript Tutorial
Просмотров 61 тыс.2 года назад
Higher Order Functions - JavaScript Tutorial
Arrow Functions JavaScript Tutorial - What NOT to do!!!
Просмотров 52 тыс.2 года назад
Arrow Functions JavaScript Tutorial - What NOT to do!!!
What is THIS keyword in JavaScript? - Tutorial for beginners
Просмотров 66 тыс.3 года назад
What is THIS keyword in JavaScript? - Tutorial for beginners
Factory Function vs. Constructor vs. Class - JavaScript Tutorial
Просмотров 58 тыс.3 года назад
Factory Function vs. Constructor vs. Class - JavaScript Tutorial
What is Constructor Function in JavaScript? - JS Tutorial
Просмотров 44 тыс.3 года назад
What is Constructor Function in JavaScript? - JS Tutorial
What is Factory Function in JavaScript - in 1 minute
Просмотров 10 тыс.3 года назад
What is Factory Function in JavaScript - in 1 minute
What is Factory Function in JavaScript? - JS Tutorial
Просмотров 54 тыс.3 года назад
What is Factory Function in JavaScript? - JS Tutorial
JavaScript Prototype Chain (1 minute coding)
Просмотров 6 тыс.3 года назад
JavaScript Prototype Chain (1 minute coding)
JavaScript inheritance - What is it and why? (1 minute coding)
Просмотров 3,4 тыс.3 года назад
JavaScript inheritance - What is it and why? (1 minute coding)
JavaScript Prototypal inheritance - Tutorial
Просмотров 70 тыс.3 года назад
JavaScript Prototypal inheritance - Tutorial
Inheritance in JavaScript - Prototypal Inheritance tutorial
Просмотров 101 тыс.3 года назад
Inheritance in JavaScript - Prototypal Inheritance tutorial
10 JavaScript concepts every Developer SHOULD know
Просмотров 12 тыс.3 года назад
10 JavaScript concepts every Developer SHOULD know
10 Coding Tips for beginner Developers
Просмотров 7 тыс.3 года назад
10 Coding Tips for beginner Developers
CSS Text Shadow (in 1 minute)
Просмотров 14 тыс.3 года назад
CSS Text Shadow (in 1 minute)
CSS Box Shadow (in 1 minute)
Просмотров 20 тыс.3 года назад
CSS Box Shadow (in 1 minute)
DARK MODE in CSS (in 1 minute)
Просмотров 2,8 тыс.4 года назад
DARK MODE in CSS (in 1 minute)
CSS Opacity - One Minute Coding ⏱
Просмотров 3 тыс.4 года назад
CSS Opacity - One Minute Coding ⏱
CSS Gradient Background - One Minute Coding ⏱
Просмотров 10 тыс.4 года назад
CSS Gradient Background - One Minute Coding ⏱
Introduction to Algorithms and Data Structures -- Are they NECESSARY?
Просмотров 9 тыс.4 года назад
Introduction to Algorithms and Data Structures Are they NECESSARY?
Functional Programming with Scala | Peter On Things
Просмотров 1,3 тыс.4 года назад
Functional Programming with Scala | Peter On Things
CSS Selectors - One Minute Coding
Просмотров 1,7 тыс.4 года назад
CSS Selectors - One Minute Coding

Комментарии

  • @HarshitGautam-bj3lc
    @HarshitGautam-bj3lc 6 часов назад

    Believe Me you are the best on the RUclips, I have watched tons of videos on Promises but finally i gain much more insight now, thanks a lot one more things please increase the number of videos and no. of frequency you make and upload those videos that would be much more appreciated. Again Thanks a lot. KEEP POSTING DAILY (if possible).

  • @wiviviwi
    @wiviviwi 7 часов назад

    What's the movie?

  • @TaiChor5Gates
    @TaiChor5Gates 14 часов назад

    Symbols are also primitives

  • @PhantomDeluxe1111
    @PhantomDeluxe1111 День назад

    Hey Sina! Wonderful video can youu tell me which editing software you use to edit your videos? Wow come on man sick editing!

  • @LowrollerWTF
    @LowrollerWTF День назад

    Dude thanks so much for this video as an Italian, I can confirm you you can omit or say °Io° and that is perfectly correct 😁 BTW off topic question: your videos look amazing are you using AE and Premiere or is there a new kid on the block who allows to do this without all that burden?

  • @Abhinand28
    @Abhinand28 День назад

    In my mind DOM was a very serious thing like Dominic Torreto and I was afraid of it. But now iam using fetch() which needs a good understanding of DOM to update the elements and after watching this Now I know Torreto 💪. Thanks ✌👍

  • @lubenstefano3139
    @lubenstefano3139 2 дня назад

    Man, you are great, as a junior student this cleared a lot of things skipped in my classes

  • @navidaliakbari1322
    @navidaliakbari1322 2 дня назад

    تو خیلی خوبی 😂❤

  • @dawkinsdaw39
    @dawkinsdaw39 2 дня назад

    Thank you a lot

  • @ColorCodeio
    @ColorCodeio 2 дня назад

    ruclips.net/p/PL1PqvM2UQiMrn7LN9wqbisGLW2Ap8yZ16

  • @CW-pd5fq
    @CW-pd5fq 3 дня назад

    Thanks for the video, it was a good refresher for me. I haven't seen your more recent videos yet, but could you maybe put exercises at the end of your videos and put the solution on GitHub?

  • @ezekielswanson7813
    @ezekielswanson7813 3 дня назад

    Wow, this is really cool!

  • @ColorCodeio
    @ColorCodeio 4 дня назад

    ruclips.net/p/PL1PqvM2UQiMrn7LN9wqbisGLW2Ap8yZ16

  • @Explorers.Spirit
    @Explorers.Spirit 4 дня назад

    I completely disagree. Our modern world has shifted far too much in favor of specialization. In my opinion, it’s created far too many experts who are blinded to everything outside of their very narrow field of expertise. Projects are about more than just one single aspect, and all of their individual pieces need to integrate smoothly and effectively. I’m not advocating that one person should know how to do every little thing, but I believe it’s important, in any field, to have broad knowledge and skills and to understand, even if you are a specialist, how your work connects to the work of your teammates. This is hampered when you focus on only one skill and nothing else. Besides this, I think people vastly undersell the value of remote association when it comes to professional work. So many people talk down to anybody who has done work outside of their field as “wasted time” when, in reality, taking ideas from one context and remixing them into another field is the very definition of creativity. Not everyone needs to be a full stack developer, nor should they be. But I think we need to realize that extremely narrow specialization is dangerous, separates us from other ideas and from other people. The world is broad, it’s ok to look around.

  • @mostafaelesawy-xb9vr
    @mostafaelesawy-xb9vr 4 дня назад

    can u explain modules and module pattern in the upcoming episodes

  • @user-zz3wy5kb1t
    @user-zz3wy5kb1t 4 дня назад

    You are is the best ❤

  • @ajiteshmishra0005
    @ajiteshmishra0005 5 дней назад

    Please keep posting all the things related with JavaScript and React from scratch We are learning more We are getting concepts clearly.

  • @CloverMapleleaf
    @CloverMapleleaf 5 дней назад

    This 20 things js developer should know is 🔥🔥🔥🔥, if possible kindly provide videos on JS Modules too. Thanks for ur effort, it helps a lot.

    • @ColorCodeio
      @ColorCodeio 4 дня назад

      Thanks! More videos coming soon

  • @ebcoutinho
    @ebcoutinho 5 дней назад

    this is pure gold

  • @ColorCodeio
    @ColorCodeio 5 дней назад

    ruclips.net/p/PL1PqvM2UQiMrn7LN9wqbisGLW2Ap8yZ16

  • @iamchiranjeevin
    @iamchiranjeevin 5 дней назад

    Who's Qoli ? lol

  • @iamchiranjeevin
    @iamchiranjeevin 5 дней назад

    Someone had definitely broke bro's promise 😅

  • @GeorgeHernandez-xh2jp
    @GeorgeHernandez-xh2jp 6 дней назад

    Awesome video! Learning about factory functions in my bootcamp right now and this really helped me better understand! The effects and music are high quality, and you break it down so well!🤓 I also really love when code content creators don't edit out their mistakes. It really helps to see possible bugs and fixes! And also encouraging to see people at this level are still human too 😅 Subscribed! Cheers!

  • @HosseinBajan
    @HosseinBajan 6 дней назад

    آقا دمت گرم عالی بود ❤

  • @CW-pd5fq
    @CW-pd5fq 6 дней назад

    Your teaching style is amazing, please continue your work 🙂

  • @robelgeremew8343
    @robelgeremew8343 7 дней назад

    wow

  • @ColorCodeio
    @ColorCodeio 7 дней назад

    ruclips.net/p/PL1PqvM2UQiMrn7LN9wqbisGLW2Ap8yZ16

  • @DemystifyFrontend
    @DemystifyFrontend 9 дней назад

    Also RUclips disable links in comments now which will prevent users reaching your long form video so please edit asap. Thanks

  • @DemystifyFrontend
    @DemystifyFrontend 9 дней назад

    Clear and crisp ❤

  • @kennjenga5390
    @kennjenga5390 9 дней назад

    Javascript this

    • @ColorCodeio
      @ColorCodeio 9 дней назад

      ruclips.net/video/fVXp7ZWjlO4/видео.html

  • @redeye8536
    @redeye8536 10 дней назад

    Man my heart opened to this guy, hes very talented to explaining and teaching everything on a pattern hes really experienced.

  • @aazizim
    @aazizim 10 дней назад

    Plz call again guli

  • @noexcuses6002
    @noexcuses6002 10 дней назад

    the ending is for me where we use it is far important to know thanks daddy

  • @noexcuses6002
    @noexcuses6002 10 дней назад

    thanks daddy

  • @ColorCodeio
    @ColorCodeio 10 дней назад

    ruclips.net/p/PL1PqvM2UQiMrn7LN9wqbisGLW2Ap8yZ16

    • @buktems4350
      @buktems4350 10 дней назад

      Hello color code. Thanks for all these videos I am really learning from these

    • @ColorCodeio
      @ColorCodeio 10 дней назад

      @@buktems4350 Glad to hear it. Thanks for sharing your feedback.

  • @ClaudioVenturini-jv7wl
    @ClaudioVenturini-jv7wl 11 дней назад

    Excellent series! Question: Is the a quick a easy way to tell if a function is aync or not? I found out the hard way by running the function and discovering the result is not ready.

  • @cholo2605
    @cholo2605 11 дней назад

    Thanks again!!! We miss u😅

  • @alexistm
    @alexistm 11 дней назад

    DAMN, YOU DESERVE MORE VIEWS AND LIKES AND SUBS, AMAZING CONTENT

  • @BlueprintAcademyNYC
    @BlueprintAcademyNYC 11 дней назад

    You're the fucking man.

  • @mukiibipeter07
    @mukiibipeter07 11 дней назад

    element.onclick = functionName(); ???

  • @kennjenga5390
    @kennjenga5390 12 дней назад

    Are the links in the comment clickable.

  • @BowlofIndoMee
    @BowlofIndoMee 12 дней назад

    Why not just call it funception?

  • @ebcoutinho
    @ebcoutinho 12 дней назад

    I'm a JS/TS junior developer from Brazil. Thank you so much for sharing your knowledge with us! Really, you did a great job, my man!

  • @not.sardar
    @not.sardar 12 дней назад

    Thank you sir, very helpful!

  • @ebcoutinho
    @ebcoutinho 12 дней назад

    Thanks a lot bro. I would be so thankful if you do the same for TS

  • @ColorCodeio
    @ColorCodeio 12 дней назад

    Full playlist: ruclips.net/p/PL1PqvM2UQiMrn7LN9wqbisGLW2Ap8yZ16 Long form video: ruclips.net/video/nGDPm86Btlw/видео.html

  • @sadface7457
    @sadface7457 13 дней назад

    Making your code less maintainable might be a benifit 😈

  • @clickerr_
    @clickerr_ 13 дней назад

    crazy good stuff man hella underrated for the content you're putting out