Which of the following is added to prefs.js when the console is automatically opened during JavaScript error?
(a) user_pref(“javascript.console.open_on_error”, true);
(b) user_pref(“javascript.console.open_error “, true);
(c) user_pref(“javascript.console.open_error “, false);
(d) user_pref(” javascript.console.open_on_error”, false);
(a) user_pref(“javascript.console.open_on_error”, true);
(b) user_pref(“javascript.console.open_error “, true);
(c) user_pref(“javascript.console.open_error “, false);
(d) user_pref(” javascript.console.open_on_error”, false);
Correct choice is (a) user_pref(“javascript.console.open_on_error”, true);
Explanation: The prefs.js file, located in the profile folder, is used by Firefox and other Mozilla-based applications to store settings. For instance, when you create a new e-mail account in Thunderbird, the account name and server settings will be stored in the prefs.js file in your Thunderbird profile folder.
The code :