Closed
Bug 1449800
Opened 7 years ago
Closed 7 years ago
Error in text Content
Categories
(Developer Documentation Graveyard :: JavaScript, enhancement, P1)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: rajvishal162, Assigned: fs)
References
()
Details
:: Developer Documentation Request
Request Type: Correction
Gecko Version: unspecified
Technical Contact:
:: Details
Hellom
In the page provided in the "Page to update section",In Section of Examples -> Adding elements to an array,
The console gives the wrong output.
It should be
console.log(total);
console.log(total.length);
For the correct output as:
// ['soccer', 'baseball', 'football', 'swimming']
// 4
respectively.
Correct me if I am wrong.
Thank You.
Reporter | ||
Comment 1•7 years ago
|
||
You can also check here.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push
Examples -> Adding elements to an array
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → fscholz
Status: UNCONFIRMED → NEW
Component: Learning Area → JavaScript
Ever confirmed: true
Priority: -- → P1
Assignee | ||
Comment 2•7 years ago
|
||
No, I think the example is correct as is. Try it :)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•