var Store = (function() {
var items = [];
function addItem(item) {
items.push(item);
}
function getItem(item) {
items.push(item);
}
return {
addItem: addItem
}
})();
Store.addItem('Man')
Store.getItem(0)
Last active
February 21, 2016 20:45
-
-
Save Oversan/0cc67b92a4c363358946 to your computer and use it in GitHub Desktop.
Обычные модуль на основе IIFE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment