Tell me what is the difference between the following two lines of code?

$('#myModalPrompt').modal({ keyboard: false });
$.fn.modal.Constructor.DEFAULTS.keyboard = false;?

Submitted by: Muhammad
In the first line will initialize a modal dialog prompt with id #myModalPrompt, and set only it to ignore keyboard event. The second line will change the default settings for the modal plugin by modifying the plugin's Constructor.DEFAULTS object, and will have an impact on all modal dialog prompts.
Submitted by: Muhammad

Read Online Bootstrap Job Interview Questions And Answers