Circuit breaker in JavaScript | Atlassian interview question | Frontend interview question - 51

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

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

  • @chahatbhatia90
    @chahatbhatia90 Год назад +4

    Closures are used in wide variety of questions I suppose

  • @tusharvashistha1274
    @tusharvashistha1274 10 месяцев назад +2

    Can’t we use setTimeOut in catch block and make isClosed false in setTimeOut so that we dont have to calculate diff?

    • @Learnersbucket
      @Learnersbucket  10 месяцев назад +1

      There are N ways to solve a problem try yours

  • @VivekChavan-ov3pl
    @VivekChavan-ov3pl Год назад +2

    Nice question ❤

    • @Learnersbucket
      @Learnersbucket  Год назад

      Thank you

    • @VivekChavan-ov3pl
      @VivekChavan-ov3pl Год назад +1

      @@Learnersbucket can you make a tutorial on any of the 6 projects you suggested in react

    • @Learnersbucket
      @Learnersbucket  Год назад +1

      @@VivekChavan-ov3pl yes, will do as 8 get time

  • @dhwajsharma
    @dhwajsharma Год назад +2

    can you use stackblitz or jsfiddle or codesandbox instead of codepen? Visibility would be much better.

  • @AnudeepKing
    @AnudeepKing Год назад +1

    If the testFunction returns a promise instead of normal throw/return then the approach needs to be modified ?

  • @KP07
    @KP07 11 месяцев назад +1

    WHy did you use closure here ?

    • @Learnersbucket
      @Learnersbucket  11 месяцев назад

      To remember the state of the function, once it is executed.

    • @KP07
      @KP07 11 месяцев назад

      @@Learnersbucket Thanks