In some JavaScript code, I saw
function fn() { console.log("yes") }
(0, fn)();
the fn
was something else but I just make a simple one here in this question. What does the 2 lines above mean -- that is, why do we do something like (0, fn)();
?