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

Home | Discussion Forum

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

View More Related Question

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

2) Consider the following code snippet

function f() {};

The above prototype represents a

3) Consider the following code snippet

function printprops(o)
{
for(var p in o)
console.log(p + ": " + o[p] + "\n");
}

What will the above code snippet result ?

4) If you have a function f and an object o, you can define a method named m of o with

5) Consider the following code snippet

o.m(x,y);

Which is an equivalent code for the above code snippet?

UP Gk Online Test

taiyari24hour.com