UNPKG

movie

Version:

prueba

28 lines (19 loc) 510 B
//var Director = require('./director.js'); function movie () { var attributes = {}, actors = [], //director = new Director(); this.set = function (pAttribute,pValue){ attributes[pAttribute] = pValue; }; this.get = function (pAttribute){ return attributes[pAttribute]; }; this.play = function() { console.log("Playing " + this.get('name')); }; this.stop = function() { console.log("Stopping " + this.get('name')); }; } module.exports = movie;