Question
var str = "Str";
var num = 10;
var output = str + num;
a.
Nothing will be printed
b.
Str10
c.
Null
d.
NaN
Posted under Web Technologies
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the value of Variable 'output' ?
Similar Questions
Discover Related MCQs
Q. During addition of two numbers , suppose one of the number is NaN then output of the following code will be ?
View solution
Q. +Infinity in JS gets added with +Infinity then output of the code will be
View solution
Q. -Infinity in JS gets added with -Infinity then output of the code will be
View solution
Q. -Infinity in JS gets added with +Infinity then output of the code will be
View solution
Q. Variable can hold ________ value at a time.
View solution
Q. Integer Variable is declared using following syntax in JavaScript.
View solution
Q. We can declare ___________ at a time. Select most appropriate option.
View solution
Q. We can declare all type of variables in JavaScript with the keyword _____________.
View solution
Q. var num;
Above Statement is called as __________ Statement.
View solution
Q. Variable name contain following type of characters -
1. Alphabet
2. Digits
3. Underscore
4. Special Characters
Select the correct option.
View solution
Q. Spaces,Punctuation marks are called as __________ Symbols in JavaScript.
View solution
Q. Which JavaScript variable cannot be used as First character but can be use after first character ?
View solution
Q. Initialization of variable can be done by writing _____ operator in between variable name and operand value.
View solution
Q. Multiple Declarations of variables are separated by ___________ symbol.
View solution
Q. var var1 = "Pritesh";
Above variable can store value of type -
View solution
Q. Variable declared without a value will have the value ______________.
View solution
Q. When you assign a text value to a variable, we put text value in the pair of _________.
View solution
Q. Non Initialized Variable have value "undefine", What value be printed in following case -
var carname="Volvo";
var carname;
View solution
Q. What will be the value of Variable - "num3" ?
var num1;
var num2 = 10;
var num3 = num1 + num2;
View solution
Q. Variables declared inside function are visible _______________.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Web Technologies? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!