Test Your JavaScript Knowledge with Lydia Hallie | Preview

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ย. 2024

ความคิดเห็น • 42

  • @jf3518
    @jf3518 8 หลายเดือนก่อน +19

    Great visualisation for the event loop with the micro and macro tasks.

  • @aredrih6723
    @aredrih6723 8 หลายเดือนก่อน +5

    I might be wrong but I'm pretty sure the method `return` and `throw` are part of the Generator's spec and not Iterator's. Also Generator's `next` takes an argument while Iterator's doesn't.
    Most structure expecting an "Iterator" usually uses the Generator method so if you had to implement one manually, sticking to the Generator specs makes sense.
    There is one use case were I find a difference through: if you share an Iterator between multiple loops (ad hoc queue/multi consumers), any loop breaking will causes a call to Generator's `return` method which will put the generator in a done state and end the other loop (no more value).
    If you have an iterator, there is no `return` method and the other loop will exhaust the iterator.

  • @jeheskielsunloy3881
    @jeheskielsunloy3881 8 หลายเดือนก่อน +44

    When you think you know javascript

    • @aditideshpande3799
      @aditideshpande3799 7 หลายเดือนก่อน +3

      that's when you know you don't😂

  • @nikolaypetrov9789
    @nikolaypetrov9789 หลายเดือนก่อน +1

    very well explained. thanks

  • @danielgilleland8611
    @danielgilleland8611 3 หลายเดือนก่อน +1

    I love your work, and I'll be sharing it with my fellow teachers and my students. Bravo!

  • @JoaquinHernandezMartinez-uc1sk
    @JoaquinHernandezMartinez-uc1sk 8 หลายเดือนก่อน +1

    thanks for the video, honestly it's in depth, clearly explained and a joy to use for review. Please do more

  • @nikilk
    @nikilk 4 หลายเดือนก่อน

    Thank you for this Lydia. That was great.

  • @madhuiitb-cse
    @madhuiitb-cse 8 หลายเดือนก่อน +8

    An excellent brush up concepts.

  • @akash-kumar737
    @akash-kumar737 7 หลายเดือนก่อน

    Just few words "Keep it coming, please".

  • @CesarDelgado-oi4zq
    @CesarDelgado-oi4zq 8 หลายเดือนก่อน +14

    Jeez... She's good! 😲

  • @Kenbomp
    @Kenbomp 8 หลายเดือนก่อน +5

    Suggest to ask if super should be used

    • @Sindoku
      @Sindoku 8 หลายเดือนก่อน +1

      There is no need to call super if you’re talking about the Dog question. There isn’t any inheritance happening, so calling super in the constructor would be pointless it seems.

  • @mameenomar
    @mameenomar 8 หลายเดือนก่อน +4

    What is being used for the visualizations?

    • @onefloatavenue
      @onefloatavenue 6 หลายเดือนก่อน +1

      in her channel she says Apple Keynote

  • @theodorealenas3171
    @theodorealenas3171 8 หลายเดือนก่อน +2

    I love these topics!

  • @MaciejJureczko-z7e
    @MaciejJureczko-z7e 8 หลายเดือนก่อน +2

    That video is great, and You are great.

  • @serhiicho
    @serhiicho 8 หลายเดือนก่อน +1

    Great video Lyda! Thanks

  • @FeLiNe418
    @FeLiNe418 8 หลายเดือนก่อน +1

    I see. The "return" keyword inside the generator functions is just to confuse people.

    • @lerarosalene
      @lerarosalene 8 หลายเดือนก่อน

      Not really. It's useless when you use them as plain iterators, but you could also use them as coroutines and actually utilise return value.

  • @ZVEKOfficial
    @ZVEKOfficial 7 หลายเดือนก่อน

    I’ve been working as a full stack dev for over 2 years now and I’ve never had to dive this deep. Am I doing something wrong ? I’m genuinely curious how this is useful in the real world if you’re not building apps from scratch

    • @ilyazinkevych7804
      @ilyazinkevych7804 3 หลายเดือนก่อน

      ehm, well promises are basically everywhere, classes are very useful in ts, and iterators are used under the hood of good old sagas, well that's basically single place I've come by iterators but anyway quite a handy base to build on

  • @veeraragavan9596
    @veeraragavan9596 8 หลายเดือนก่อน

    I subscribed with front end masters content was good but not having clear roadmap most of JavaScript is there which tutor I should start with ??

    • @FrontendMasters
      @FrontendMasters  8 หลายเดือนก่อน +1

      Please see our learning paths for guidance! frontendmasters.com/learn/ - all courses are placed in order depending what your goals are.

  • @billrazor6591
    @billrazor6591 8 หลายเดือนก่อน

    Awesome!

  • @SebasCC99
    @SebasCC99 8 หลายเดือนก่อน

    Does anyone know what tools was used for the visualization?

    • @rohit_ambre
      @rohit_ambre 7 หลายเดือนก่อน +1

      keynote

  • @FragZero
    @FragZero 8 หลายเดือนก่อน +1

    nice video... just one little fix class Dog { construct(name) this.name = name ...

  • @Sindoku
    @Sindoku 8 หลายเดือนก่อน +2

    She basically has a quiz that are very similar to the questions I ask candidates when hiring other web developers during the theory interview round. I’m an architect at a fortune 30 company in finance, one of the top two banks in the world for reference. I’ll be checking this out, God willing. Seems like a lot of fun!

    • @bashovski
      @bashovski 8 หลายเดือนก่อน +12

      No one will ever compare two constructors or iterate a generator in production

    • @thi-m10
      @thi-m10 8 หลายเดือนก่อน +2

      @@bashovski But once you understand this you can avoid and identify many bugs and problems because you know how javascript works behind the scenes

    • @bashovski
      @bashovski 8 หลายเดือนก่อน

      @@thi-m10 I'll just use TypeScript to avoid worrying about a function returning an undesired type or a value. But I agree, it's not useless to know 👍

    • @doc8527
      @doc8527 7 หลายเดือนก่อน

      @@thi-m10 the question from video is a good example to understand the fundamentals as a fun exercise, but it's very terrible as an interview hard requirement test. It could be fun practice/warm up for both candidates and interviewer to go through the questions, but imply it's not a real thing to test against you.
      If you used this types of tricky code a lot in your codebase and it's the reason why you test the candidate. As a senior or whatever developer/interviewer you should be shameful for whatever you are doing now without good reasons.
      Speaking from the experience of that many cool kids know this type of tricky questions, neglect the fundamental, and actually try to apply them in real practice. Just like applying some crappy leetcode algos for simple stuffs. It's such a nightmare.
      The worst part, some senior devs are truly pretentious about knowing them, even some hacky prototype behavior you should never know or use, or terrible JavaScript design mistake from the past, which is completely irrelevant outside of JS.

  • @cariyaputta
    @cariyaputta 4 หลายเดือนก่อน

    No this keyword shenanigans?

  • @firiasu
    @firiasu 8 หลายเดือนก่อน

    Nice voice and quiz! I didn't make a single mistake, I'm too experienced...

  • @luisdef_
    @luisdef_ 8 หลายเดือนก่อน +8

    JavaScript is weird.

  • @Sindoku
    @Sindoku 8 หลายเดือนก่อน +1

    That last function looked a little iffy.

  • @elvispalace
    @elvispalace 8 หลายเดือนก่อน +3

    I need a new brain

  • @omega.developer
    @omega.developer 2 หลายเดือนก่อน

    It's not free. Sorry it's disappointing 😢

  • @DnKZone
    @DnKZone 8 หลายเดือนก่อน

    L

  • @skidkadda
    @skidkadda หลายเดือนก่อน

    I smell Dutch

  • @VladPutin-f8m
    @VladPutin-f8m 8 หลายเดือนก่อน

    omg I'm so stupid. Javascript is so evil, I love it :v