same except in first you are using an extra pair of parentheses for passing parameter to the function, how would u pass parameter to second function?
Ah I see, you are missing a pair of parentheses. It should be (function (number) { console.log(number); }(24));
Обсуждают сегодня