Consider the following code snippet :
 var c = counter(), d = counter(

Home | Discussion Forum
Taiyari24Hour

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 :



View More Related Question

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) A function with no return value is called

4) Do functions in JavaScript necessarily return a value ?

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

UP Gk Online Test

taiyari24hour.com

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