0 votes
in JavaScript by
What is the output for the following code

(function f(){

function f(){

return 1; }

return f();

function f()

{ return 2; } })();

NaN

1

2

Error

1 Answer

0 votes
by
2  two

Related questions

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