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) What will happen if a return statement does not have an associated expression?

3) Which of the following is the correct code for invoking a function without this keyword at all, and also too determine whether the strict mode is in effect?

4) Consider the following code snippet :

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

Will the above code work ?

5) Do functions in JavaScript necessarily return a value ?

UP Gk Online Test

taiyari24hour.com

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