(function(mod) {
mod.changeSpeed = function(speed) {
varnewSpeed = parseInt(speed);
this.speed = (newSpeed < 200 || isNaN(newSpeed))? 2000:newSpeed;
returnthis;
};
})(myapp.slideshow);
(Refer to code example 18-4) This code augments the slideshowobject using
a.
the changeSpeed method
b.
an IIFE
c.
a namespace
d.
a third party library
Expert Answer
An answer will be send to you shortly. . . . .