What is a prototype?
prototypes in JavaScript is a means of extending and inheriting JavaScript objects.
Yes, JavaScript is an Object Oriented Language.
Altough it is fairly easy to write procedural (functional) routines in JavaScript and use sequential programming techniques, the true power of JavaScript is in its extensibility. Everything in JavaScript including functions, arrays, numbers and strings are objects and they can be extended and inherited using prototypes.
To stress again, JavaScript is a loosely-typed, prototype-based Object Oriented language.
s@rdalya uses prototypes extensively to create and inherit objects.
This usage makes s@rdalya modular Object Oriented, easy to develop, easy to debug and easy to refractor.
See JavaScript for more details.
Comments (0)
You don't have permission to comment on this page.