Anonymous user
Function prototype: Difference between revisions
→{{header|JavaScript}}
(Improved examples (look less like a Java knock-off)) |
|||
Line 312:
=={{header|JavaScript}}==
JavaScript functions may also be used to define prototype objects
<lang JavaScript>
// A prototype declaration for a function that does not require arguments
function List() {}
|