Created
January 20, 2016 19:43
-
-
Save verekia/e6cd0a1054ce782eac0f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(['Models/User'], function(User){ | |
var users = [new User('Barney'), | |
new User('Cartman'), | |
new User('Sheldon')]; | |
for (var i = 0, len = users.length; i < len; i++){ | |
console.log(users[i].name); | |
} | |
localStorage.users = JSON.stringify(users); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment