Automatically opened the console when a JavaScript error occurs which of the following is added to prefs.js?
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);
Automatically opened the console when a JavaScript error occurs which of the following is added to prefs.js?
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);
More interview questions and answers
Why we use NAN function?
When we use NAN functon it will return true if the argument was not an operator. Write Boolean Operator that was supported in JavaScript?
&&,|| and! Boolean Operators are supported in JavaScript. What is the Keyword?
We use keyword to refer current object. What is the negative infinity?
It\'s a number in JavaScript, It is achieved by dividing negative number by zero. JavaScript is developed by
a. Brendan Eich
b. Tim Duncan
c. Bjarne Stroustrup
d. Denish Richie
a. Brendan EichJavaScript is widely used for
a. server-side web development
b. client-side web development
c. both client-side and server-side web development
b. client-side web development JavaScript introduced by
a. Microsoft
b. IBM
c. Google
d. Sun Microsystem
d. Sun Microsystem First name of JavaScript is
a. Oak
b. Mocha
c. JScript
d. JSL
b. Mocha Using which tag we insert an JavaScript in HTML page?
a.
b.
c.
d.
b. <script type=\"text/javascript\"></script> Between these tags we write our script. Write syntax to get "R4R Welcomes you!" with using JavaScript?
a. document.write("R4R Welcomes You!")
b. print("R4R Welcomes You!")
c. print.write("R4R Welcomes You!")
d. script.write("R4R Welcomes You!")
a. document.write("R4R Welcomes You!")
I have given you proper code to print that,
We use tag within
a.
b.
c.
d.
b. <body> Which popup box you use to verify something from user?
a. alert("Write some text here")
b. confirm("Write some text here")
c. prompt("Write here some text","Write default value here")
b. confirm("Write some text here")
Which popup box you use when want some information comes from user?
a. alert("Write some text here")
b. confirm("Write some text here")
c. prompt("Write here some text","Write default value here")
a. alert("Write some text here") Which popup box you use when want a value from user before open a page?
a. alert("Write some text here")
b. confirm("Write some text here")
c. prompt("Write here some text","Write default value here")
c. prompt("Write here some text","Write default value here")
______ JavaScript is also called client-side JavaScript.
Navigator __________ JavaScript is also called server-side JavaScript.
A. Microsoft
B. Navigator
C. LiveWire
D. Native
LiveWire What are variables used for in JavaScript Programs?
A. Storing numbers, dates, or other values
B. Varying randomly
C. Causing high-school algebra flashbacks
D. None of the above
A. Storing numbers, dates, or other values _____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.
A. Client-side
B. Server-side
C. Local
D. Native
A. Client-side What should appear at the very end of your JavaScript?
The
B. The
Which of the following can't be done with client-side JavaScript?
A. Validating a form
B. Sending a form's contents by email
C. Storing the form's contents to a database file on the server
D. None of the above
C. Storing the form's contents to a database file on the server Which of the following are capabilities of functions in JavaScript?
A. Return a value
B. Accept parameters and Return a value
C. Accept parameters
D. None of the above
c. Accept parameters How does JavaScript store dates in a date object?
A. The number of milliseconds since January 1st, 1970
B. The number of days since January 1st, 1900
C. The number of seconds since Netscape's public stock offering.
D. None of the above
A. The number of milliseconds since January 1st, 1970 What is the correct JavaScript syntax to write \"Hello World\"?
A. System.out.println(\"Hello World\")
B. println (\"Hello World\")
C. document.write(\"Hello World\")
D. response.write(\"Hello World\")
document.write(\"Hello World\");
Which of the following way can be used to indicate the LANGUAGE attribute?
A.
B.
D.
C. What is the correct syntax for referring to an external script called \" abc.js\"?
A.
Automatically opened the console when a JavaScript error occurs which of the following is added to prefs.js?
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);