Closed Bug 1229138 Opened 10 years ago Closed 10 years ago

Promises demo script has syntax error and won't run

Categories

(Developer Documentation Graveyard :: JavaScript, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: h2oboi89, Unassigned)

References

()

Details

:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details Tried in both latest Chrome (46) and Firefox (42). Issue is around line 40 of https://mdn.mozillademos.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise$samples/Creating_a_Promise?revision=964999 p1.then( // Log the fulfillment value function(val) { log.insertAdjacentHTML('beforeend', val + ') Promise fulfilled (<small>Async code terminated</small>)<br/>'); }) should be p1.then( // Log the fulfillment value function(val) { log.insertAdjacentHTML('beforeend', val + ') Promise fulfilled (<small>Async code terminated</small>)<br/>'); })
Summary: Promises demo script is has syntax error and won't run → Promises demo script has syntax error and won't run
OS: Other → Windows 7
Hardware: All → x86_64
OS: Windows 7 → All
Hardware: x86_64 → All
Thanks, I fixed the wiki page. Did you know you can help maintaining the MDN wiki too? Get started: https://developer.mozilla.org/en-US/docs/MDN/Getting_started
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.