JavaScript Patterns: The Callback Pattern

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

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

  • @fabriziogallici7118
    @fabriziogallici7118 4 ปีที่แล้ว +3

    Great Explanation!! I'm learning Js and your tutorials are by far the more complete and understandable. Keep going.

  • @erichrick5817
    @erichrick5817 4 ปีที่แล้ว +2

    A very mind-bending exercise!!

  • @monirshimul
    @monirshimul 2 ปีที่แล้ว

    Great teacher on youtube. Please do a series on Data Structure and algorithms based on javascript.

  • @_yllw6155
    @_yllw6155 2 ปีที่แล้ว

    excellent.

  • @PaulJacobs51
    @PaulJacobs51 4 ปีที่แล้ว

    Good stuff.. Many thanks..!

  • @chndraja
    @chndraja 5 ปีที่แล้ว

    Thank You... 👍👍👍

  • @JoeBoo532
    @JoeBoo532 4 ปีที่แล้ว

    How would you return all other properties with the new given score???

    • @AllThingsJavaScript
      @AllThingsJavaScript  4 ปีที่แล้ว

      Usually if you want something different returned you would pass in a different callback function. That is the nice thing about this pattern. You can accomplish different things. What exactly did you want returned?

  • @nelsonjimenez7939
    @nelsonjimenez7939 5 ปีที่แล้ว

    Awesome

  • @oneein9183
    @oneein9183 3 ปีที่แล้ว

    Not great. If you just name the function something like formatScore() and use it instead of callback(). It is so much more readable. I still didn't get it what is so special about callback except that it turns the code in spaghetti.

  • @liyan542
    @liyan542 4 ปีที่แล้ว

    精彩!