Logical Short-Circuiting in JavaScript

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025

Комментарии • 16

  • @rotrose7531
    @rotrose7531 4 года назад +7

    A function that has no return statement will by default return undefined. This is now firmly remembered in my head. Thank you.

    • @remigiangolec7420
      @remigiangolec7420 2 года назад

      omg missed this valuable information at first viewing, only to discover the implications of it during logical operators practice days later

  • @jayster900able
    @jayster900able 3 года назад

    Love how you really explain things for newbie future devs!

  • @chesterxp508
    @chesterxp508 3 года назад

    Another very cool tutorial !!!

  • @cigarAsh369
    @cigarAsh369 6 лет назад +2

    Thank you, sir. Very helpful

  • @allenrichardyeager8449
    @allenrichardyeager8449 3 года назад

    Thank you so much, I read JS book and It's not clear about this topic. The way you explain short circuiting logical is open my mind.
    Great job 👏🏻

  • @badbeatslayer
    @badbeatslayer 2 года назад

    8:39 how is the f() returning "no" now? I watch it 3 times, can' understand ...help please !

  • @shinigami2669
    @shinigami2669 4 года назад

    does this work same when we use or(||) operator?

  • @maxtayebwa8987
    @maxtayebwa8987 5 лет назад

    Very helpful indeed.
    Prof, would do a series on best code practices in JS and PHP?
    I really think it would be a great one!
    Thanks otherwise prof...

  • @bruhmoment3731
    @bruhmoment3731 2 года назад

    cool!

  • @iredits7621
    @iredits7621 3 года назад

    It sounds like you are destroying your mouse everytime you click it lol.
    Very helpful video though, great job!