Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var inventory;
- $(function(){
- (function() {
- inventory = {
- init: function() {
- console.log('Initialized');
- },
- setDate: function() {
- var date = '1234'
- $('#test').text(date);
- }
- };
- })();
- });
- inventory.init() //=> inventory is not defined
- inventory.setDate(); //=> inventory is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement