|c.||The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers.|
|Que.||Consider the following code snippet : var grand_Total=eval(“10*10+5”); The output for the above statement would be :|
|b.||105 as a string|
|c.||105 as an integer value|
|d.||Exception is thrown|
|Answer:105 as an integer value|
What will be the output of the following PHP code?
2. What will be the output of the following PHP code? Explanation: The statement should be print_r(‘Hello World’) to print Hello world. Also if there is only one line then there is no requirement of a semicolon, but it is better to use it.
What is the output of the following code snippet var A?
|Que.||Consider the following code snippet : var a = [1,2,3,4,5]; a.slice(0,3); What is the possible output for the above code snippet ?|
|Que.||Consider the code snippet given below: var count = [1,,3]; What is the observation made?|
|b.||This results in an error|
|c.||This results in an exception|
|d.||None of the mentioned|
|Answer:The omitted value takes “undefined”|
1+ +”2″+3 results 6 1+”2″+3 results “123” AS The unary + operator converts its operand to Number type. +”2″ is a way to cast the string “2” to the number 2 . The remain is a simple addition.