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

Home | Discussion Forum
Taiyari24Hour

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



View More Related Question

2) 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 ?

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

4) Consider the following code snippet :

var string2Num=parseInt("123xyz");

The result for the above code snippet would be :

5) When does the function name become optional in JavaScript?

UP Gk Online Test

taiyari24hour.com

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