Do functions in JavaScript necessarily return a value ?

Home | Discussion Forum
Taiyari24Hour

Do functions in JavaScript necessarily return a value ?



View More Related Question

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

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

3) 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 :

4) What is the purpose of a return statement in a function?

5) For the below mentioned code snippet:

var o = new Object();

The equivalent statement is:

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.