Skip to content

Instantly share code, notes, and snippets.

View mrmikee's full-sized avatar

Michael Cone mrmikee

View GitHub Profile
@mrmikee
mrmikee / NameSpacing_Modular_Javascript.js
Last active January 31, 2016 22:21
JavaScript NameSpacing Example
//Here is their example showing how to declare private & public properties and functions. Everything is done as a self-executing anonymous function.
(function( skillet, $, undefined ) {
//Private Property
var isHot = true;
//Public Property
skillet.ingredient = "Bacon Strips";
//Public Method