Why is there a difference in the names of the properties of the Promise object?

  • 0
    If you look in the console for a Promise instance in Chrome on Windows and on a Mac, then there is a difference in the names of the properties. On a Mac:
    [[PromiseStatus]]
    [[PromiseValue]]

    On Windows:
    [[PromiseState]]
    [[PromiseResult]]

    Is it because of the axis such a difference?
    JavaScript Anonymous, Apr 14, 2020

  • 1 Answers
  • 0
    Because these are not properties, they are just views for the console on the internal state of an object built into the JS engine.

    Each implementation is free to name them differently, or not show them at all.
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!