Ishanki Verma
Ishanki Verma

Reputation: 47

IIFE is not giving any output

I tried IIFE in js, but its not giving any output if I am not executing any other part of the code in the program except this function(using node)

Output is not returning anything with iife but it is giving the result if i execute console.log() before executing this function When I tried executing or printing any other thing too with this function then only it gave me results.Expecting the function to be exectued and would give results but it didnt return anything in output if I have executed it without printing anything above using console.log()?

Upvotes: 0

Views: 27

Answers (0)

Related Questions