+1 vote
in JavaScript by
What is the output for the following code?

(function f(){

   function f(){ return 1; }

return f();

function f(){ return 2; } })();

1

Error

2

NaN

1 Answer

0 votes
by
Two

Related questions

0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
+1 vote
asked Mar 22, 2021 in JavaScript by Robindeniel
...