//1. Formal way function isNimble() { return true; } //2. Set to a variable. Javascript actually treats functions as just another type of object var canFly = function () { return true; }; //3. anonymous function window.isDeadly = function () { return true; };
No comments:
Post a Comment