Do functions in JavaScript necessarily return a value ?

Home | Discussion Forum

Do functions in JavaScript necessarily return a value ?

View More Related Question

1) Consider the following code snippet :

 var grand_Total=eval("10*10+5");

The output for the above statement would be :

2) Consider the following code snippet :

 var c = counter(), d = counter();
c.count()
d.count()
c.reset()
c.count()
d.count()

The state stored in d is :

3) Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?

4) What is the difference between the two lines given below ?

  !!(obj1 && obj2); (obj1 && obj2);

5) Consider the following code snippet :

var tensquared = (function(x)
{
return x*x;
}
(10));

Will the above code work ?

UP Gk Online Test

taiyari24hour.com