I came across this syntaxt many times, in JavaScript or jQuery plugin
$.fn.testPlugin = function( options ) {
// Create some defaults, extending them with any options that were provided
var settings = $.extend( {
'location' : 'top',
'background-color' : 'blue'
}, options);
I do understand that the function is extended but what after $.extend({}) is not clear to me.
$.extend({})” is precisely what this fragment is not showing.