What will be the output of the following code?

//nfe (named function expression)
var Foo = Function Bar()
{
return 7;
};
typeof Bar();

Answer Posted / hrpatelsoft@gmail.com

Reference Error

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you give an example showing javascript hoisting?

461


Is there any difference between javascript and jscript?

526


Explain the difference between call() and apply()?

511


What does unshift() function do in Javascript?

707


What is local scope in javascript?

477






Which built-in method calls a function for each element in the array?

601


Why typeof null is object?

566


What is global variable in javascript?

503


What is a currying function?

494


What are the variable naming conventions in javascript?

480


Do unused imports affect performance javascript?

1092


What are self Executing Functions?

617


What is the difference between script type and the script language attributes?

515


how to write frame work Architecture in QTP

1520


How do you submit a form using JavaScript?

502