Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Here we are loading a "movie" module to use in our callback function
require(["movie"], function(Movie) {
var a = new Movie();
a.setAttribute('name','terminator');
console.log(a.getAttribute('name'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.