function($) { $.fn.blackjack = function(options) { var o = $.extend({ dealerName: Dealer, playerName: Player, bet: 5 },
Fantastic news! We've Found the answer you've been seeking!
Question:
function($) {
$.fn.blackjack = function(options) {
var o = $.extend({
"dealerName": "Dealer",
"playerName": "Player",
"bet": 5
}, options);
return this.each(function() {
/* the code for the plugin goes here */
};
};
})(jQuery);
If the plugin is called with the following options, what are the resulting values?
$("#blackjack").blackjack({
playerName: "Mary",
bet: 10
});
a. | dealerName is “Dealer”, playerName is “Player”, bet is 5. | |
b. | dealerName is “Dealer”, playerName is “Player”, bet is 10. | |
c. | dealerName is “Dealer”, playerName is “Mary”, bet is 10. | |
d. | dealerName is “Dealer”, playerName is “Mary”, bet is 5. |
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: