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
Q. The opposite of onmouseover is_____?
Q. Find the output of below Javascript
Q. JavaScript is untyped language.
Q. Find output of below Javascript addition code
Q. A __________ will be visible only within a function where it is defined.
Q. Which one is Ternary Operator
Q. What is the work of the form control elements in the HTML DOM?
Q. What would happen if the data in the client had been wrong?
Discusssion
Login to discuss.