0
What is the output for the following code (function f(){ function f(){ return 1; } return f(); function f() { return 2; } })();

Open 1 Answers 493 Views Technology

What is the output for the following code
(function f(){
function f(){
return 1; }
return f();
function f()
{ return 2; } })();
a) NaN
b) 1
c) 2
d) Error

1 Answer

0
Answer:-2




#javascript #carinsurance #health-insurance #medical-insurance
by (277k points)
...