A
Q. See the given code of JavaScript and choose the correct output from the following
Code:var string1 = "40"; varvalueinit=50; alert( string1 +intvalue);
Here, you will find a collection of MCQ questions on JavaScript. Go through these questions to enhance your preparation for upcoming examinations and interviews.
To check the correct answer, simply click the View Answer button provided for each question.
Have your own questions to contribute? Click the button below to share your MCQs with others!
+ Add QuestionA
var string1 = "40"; varvalueinit=50; alert( string1 +intvalue);
A
A
A
var text ="testing: 1, 2, 3";// Sample text var pattern =/d+/g// Matches all instances of one or more digits.
A
A
A
A
A
A
function display1(option)
{
return(option ? "true" : "false");
}
bool ans=true;
console.log(display1(ans));
If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.
Share Your MCQ