Consider the following snippet code
var string1 = ”123”;
var
Home | Discussion Forum
var
Consider the following snippet code
var string1 = ”123”;
var intvalue = 123;
alert( string1 + intvalue );
The result would be
123246
246
123123
Exception
Answer : C
View More Related Question
1) Which of the operator is used to test if a particular property exists or not?
2) What kind of an expression is “new Point(2,3)”?
Primary Expression
Object Creation Expression
Invocation Expression
Constructor Calling Expression
View Answer
3) Among the following, which one is a ternary operator?
4) Consider the following snippet code
var string1 = ”123”;
var intvalue = 123;
alert( string1 + intvalue );
The result would be
5) Initialization of variable can be done by writing _____ operator in between variable name and operand value.