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
Be the first to start discuss.
Q. Every object contains three object attributes that are
Q. Which of the following uses a lot of CPU cycles?
Q. Which of these contains an executable statement?
Q. Which of the following methods adds an arc to the current subpath?
Q. What is the returning value of the getContext() method?
Q. In Javascript each window object has sub-object, which called
Q. JavaScript objects are written with _____.
Q. See the given code of JavaScript and choose the correct output from the following
Discusssion
Login to discuss.