Skip to content

Instantly share code, notes, and snippets.

View Charodey's full-sized avatar
🎈
🏂

Denis Charodey

🎈
🏂
View GitHub Profile
@Charodey
Charodey / javascript-prototyping-best-practices.js
Created September 29, 2015 05:52
Javascript Prototyping Best Practices
'use strict';
/*
# Javascript Prototyping Best Practices
* To create a class, create a constructor function with a `Name` and assign
it to a variable of the same `Name`.
* In this constructor only define properties using `this.prop` notation