Open Bug 1376223 Opened 3 years ago Updated Last year

"Promise" Advance Example CodePen Has a Bug

Categories

(Developer Documentation :: JavaScript, enhancement)

All
Other
enhancement
Not set

Tracking

(Not tracked)

People

(Reporter: kellan.martin, Unassigned)

Details

(Whiteboard: [specification][type:bug])

What did you do?
================
1. Went to "Promise" page (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
2. Opened up the CodePen for the "Advanced Example" (~1/2 way through the article)
3. Tried running example

What happened?
==============
Found there was en error in the CodePen in the form of a misplaced ')' at the end of the code.

What should have happened?
==========================
This CodePen should auto-run on open without the need to debug.

Is there anything else we should know?
======================================
N/A
The Syntax Error is also present in MDN sample version: 

https://mdn.mozillademos.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise$samples/Creating_a_Promise?revision=1264907
Status: UNCONFIRMED → NEW
Component: General → JavaScript
Ever confirmed: true
Product: Mozilla Developer Network → Developer Documentation
You need to log in before you can comment on or make changes to this bug.