Consider the following code snippet :
var tensquared = (function(x)
					 Home | Discussion Forum
					 
						
                        
                    
                    

Taiyari24Hour

Consider the following code snippet :

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

Will the above code work ?



View More Related Question

2) Do functions in JavaScript necessarily return a value ?

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

4) Consider the following code snippet :

function constfuncs()
{
var funcs = [];
for(var i = 0; i < 10; i++)
funcs[i] = function()
{
return i;
};
return funcs; }
var funcs = constfuncs();
funcs[5]()

What does the last statement return ?

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.