jashkenas--coffeescript/documentation/sections/prototypal_inheritance.md

8 lines
256 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Prototypal Inheritance
In addition to supporting ES2015 classes, CoffeeScript provides a shortcut for working with prototypes. The `::` operator gives you quick access to an objects prototype:
```
codeFor('prototypes', '"one_two".dasherize()')
```