Home / Programming MCQs / JavaScript MCQs / Question
C
Q. What will be the output of the following JavaScript code snippet?
<p id="demo"></p> var txt1 = "mcqbuddy_"; var txt2 = "Javascriptmcq"; document.getElementById("demo").innerHTML = txt1 + txt2;
The + operator in javascript acts as a concatenation operator when used with string. The new string does not have any space between the two added strings.
You must be Logged in to update hint/solution
If var A={B:3, C:5}, how to use the delete operator to delete one of the properties of an object.
Consider the following code snippet : The state stored in q is :
Which of these contains an executable statement?
What is the correct syntax for opening a new window called “f2”?
Which of the following is not a navigator property?
The expression of calling ( or executing ) a function or method in JavaScript is called
What will be the output of following Javascript code:
Which of the following option is used as hexadecimal literal beginning?
Which of the following are the properties of a plug-in entry?
Discusssion
Login to discuss.