Javascript Polyfills Explained Simply

Sdílet
Vložit
  • čas přidán 7. 06. 2021
  • What is a polyfill?
    A polyfill is a piece of code that is used to provide/fill-in some feature on older browsers that don't support that feature by default. For example, there are some JavaScript functions/features that Google Chrome supports but Internet Explorer does not support (like Promises or Object.assign()). In order to ensure that the website doesn't break in IE, a developer could write a piece of polyfill code that simulates the missing functionality that IE does not support.
    📚 Materials/References:
    GitHub Code: github.com/pkellz/devsage/blo...
    🌎 Find Me Here:
    Twitter: / realdevsage
    Ebooks: payhip.com/devsage
    Discord: / discord
    Merch: cottonbureau.com/people/devsage
    ❌ Correction:
    At 7:58, I said "signature" when I should have said "reference".

Komentáře • 45

  • @DevSage
    @DevSage  Před 2 lety +1

    🤖 GitHub: github.com/pkellz/devsage/blob/master/Javascript/Polyfill.js
    💙 Twitter: twitter.com/realDevSage
    📙 Ebooks: payhip.com/devsage
    💥 Discord: discord.gg/BP8wPv6raA

  • @domizianoscarcelli1936
    @domizianoscarcelli1936 Před 2 lety +9

    Why tf is Internet Explorer still considered a browser

  • @ramonchavez981
    @ramonchavez981 Před rokem +2

    Thank you, I just learned about Pollyfill and your video was on point. I was working on a story at work that needed this overriding, and it worked. I feel so happy now.

  • @felipecarl1415
    @felipecarl1415 Před 2 lety +9

    Absolutely 10/10 explanation!! Love it

  • @iredits7621
    @iredits7621 Před 3 lety +14

    Very well explained, nice job!

  • @justfair4181
    @justfair4181 Před rokem +4

    very well explained.

  • @KoltPenny
    @KoltPenny Před 8 měsíci +2

    Conclusion: Deprecate IE and move on. If you check right now both the arrow functions page and the promise page, you¿'ll notice they are basically universally accepted.

  • @pushpabaiwankhade7207

    Great explanation! Thank you❤

  • @mohammedabrar2871
    @mohammedabrar2871 Před rokem

    Love the explanation, thank you!

  • @danyoutube69
    @danyoutube69 Před 3 lety +1

    Great explanation thank you

  • @UniversalKnowledge01
    @UniversalKnowledge01 Před 2 lety +3

    Great explanation. How were you able to get that glowing font affect for vscode?

    • @DevSage
      @DevSage  Před 2 lety

      It's the Synthwave '84 VSCode theme

  • @anothername2730
    @anothername2730 Před 5 měsíci +1

    Nice tutorials! Good work.
    On a constructive note, there is only one flaw with your videos: The “intro music” is kinda wonky. I know it sounds petty, but just a marketing tip.

    • @DevSage
      @DevSage  Před měsícem

      Thanks for the feedback

  • @bagulm123
    @bagulm123 Před 7 měsíci

    Nice explanation, Thanks!

  • @PraveenKumar-ft2kr
    @PraveenKumar-ft2kr Před 2 lety +2

    Amazing .. finally understood this time :) Thank you :)

    • @DevSage
      @DevSage  Před 2 lety +1

      No problem, Praveen

  • @DjSeymur
    @DjSeymur Před 2 lety +1

    Thanks for this nice and concise explanation

  • @kiranshelar2961
    @kiranshelar2961 Před rokem

    Absolutely amazing 👏🏻

  • @chennaiweatherman
    @chennaiweatherman Před 3 lety +1

    Good content! Keep going

  • @jamessi318
    @jamessi318 Před rokem

    Very good explanation for polyfill n callbackFunction for me, so helpful.

  • @vinisaveg
    @vinisaveg Před 2 lety +1

    awesome vid! thank you!

  • @mj2758
    @mj2758 Před 2 lety +1

    Great explanation 👍🏼

  • @jihadfamily6127
    @jihadfamily6127 Před 2 lety

    Super awesome 🔥

  • @harshitgupta7111
    @harshitgupta7111 Před 2 lety +1

    Too good explanation 🎉

  • @adityanarayangantayat7133

    Thank you so much! ❤️
    Can you please tell me what theme you're using on vscode?

  • @mubashirwaheed474
    @mubashirwaheed474 Před 2 lety +1

    Thank you so much

  • @learner8084
    @learner8084 Před 11 měsíci

    Thanks a lot... I understand polyfill now... but I dont' understand why the val of this would refer to the arr ?

  • @klin-coders9374
    @klin-coders9374 Před 3 lety +1

    amazing thanks

  • @mikejakusz1493
    @mikejakusz1493 Před rokem

    Why can't you just use arr in your polyfill? How does this know to reference your array?

  • @golcuk2076
    @golcuk2076 Před 8 měsíci

    Nice explanation but Eventhough I know "this" I didn't understand there why it refer to the that array exactly. It would have been great if u explained it

    • @misoandramen
      @misoandramen Před 2 dny

      The “this” keyword refers to the instance of the object. In this example he was already intending to use arr. However in any case it just refers to the object that you plan to invoke the method on. So if you had an object apples =[“gala”, “Fuji”] you would invoke apples.forEach(lambda function). In the foreach method we look for “this” and it is referring to apples

  • @ukaszjonasiak382
    @ukaszjonasiak382 Před rokem

    wait this is not a fireship video

  • @vaibhavmatere18
    @vaibhavmatere18 Před 2 lety +1

    atleast zoom in so that user can see the code

  • @stoncjoesperanto8632
    @stoncjoesperanto8632 Před 2 lety +1

    Unreadable :-(

  • @bradtramel9467
    @bradtramel9467 Před 8 měsíci

    I learned that Internet Explorer is bad!