Skip to content

Instantly share code, notes, and snippets.

@devinrhode2
Created June 30, 2012 19:42
Show Gist options
  • Save devinrhode2/3025239 to your computer and use it in GitHub Desktop.
Save devinrhode2/3025239 to your computer and use it in GitHub Desktop.
Better strict mode pattern.
/* Author: username (email@me.com) */
//'globals':
var foo, bar;
(function myCodeFileJS(){
'use strict';
foo = 'asdf';
//private:
var baz = 'adsf';
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment