Skip to content

Instantly share code, notes, and snippets.


ryardley/new_syntax_class.js Secret

Last active Aug 29, 2015
What would you like to do?
// Hipster < Hippie
var Hipster = Hippie.extend(function(){
var thought = 'Cafe latte';
return {
init: function(name){, name);
this.greeting = 'Beer me!';
makePeace: function(){
return 'Cold drip baby.';
setThought: function(value){
thought = value;
getThought: function(){
return thought;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment