ES6 Generator example.
A Pen by Origin1 Technologies on CodePen.
Demonstrates use of the module design pattern to leverage closures for privacy. Shows a decent way of achieving prototype-based constructor chains for inheritance -- also explains how the .call(...) function plays a crucial role there. Uses the logical OR to assign default values unless otherwise specified.
Forked from Reesington's Pen JS OOP Template.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |