Anonymous user
Function prototype: Difference between revisions
→{{header|JavaScript}}
Line 312:
=={{header|JavaScript}}==
=== ES5 ===
<lang JavaScript>
// A prototype declaration for a function that does not require arguments
Line 331 ⟶ 332:
l.pop(); // 5
l.length; // 0
// A prototype declaration for a function that utilizes varargs
Line 355 ⟶ 354:
</lang>
=== ES6 ===
<lang JavaScript>
// A prototype declaration for a function that does not require arguments
|