1.

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);The question was posed to me in homework.My query is from External JavaScript and PHP topic in portion Caching, Debugging and Animation of JavaScript

Answer»

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 :



Discussion

No Comment Found

Related InterviewSolutions