Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created July 17, 2018 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugmodedotnet/83dbdaa5a5d2b96aafd0a083155b1f0b to your computer and use it in GitHub Desktop.
Save debugmodedotnet/83dbdaa5a5d2b96aafd0a083155b1f0b to your computer and use it in GitHub Desktop.
var module1 = (function() {
'use strict';
//private
let color = 'red';
// public
return {
price : 800
}
}());
console.log(module1.price); // 800
console.log(module1.color); // undefiend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment