0

I'm confused about what I'm seeing online. If I want to use Javascript promises instead of callbacks do I need to be concerned that browsers don't support it?

Thanks.

JJJ
  • 32,902
  • 20
  • 89
  • 102
shw
  • 135
  • 3
  • 12
  • 1
    As always, it depends on what browsers you want it to work in. http://caniuse.com/#feat=promises – JJJ Jun 27 '17 at 08:38
  • Also https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise#Browser_compatibility – Alnitak Jun 27 '17 at 08:38
  • thanks. I actually saw those links but I thought I was missing something like ie11 only doesn't support certain parts of promises... – shw Jun 27 '17 at 08:42
  • 2
    you don't need a transpiler for promises – Jaromanda X Jun 27 '17 at 08:58

1 Answers1

4

As you can see in can i use promises, the promises are not supported on IE and some older browsers.

You have many possibilities to determine if a promise is supported by the browser.

You can also read how do you use es6 promises today on frontend.

Francesco Casula
  • 26,184
  • 15
  • 132
  • 131
Jérémie Boulay
  • 400
  • 4
  • 13