They both return the same result. But what is the difference?
(function (val) {
console.log("val1: ", val);
}("FOO"));
(function (val) {
console.log("val2: ", val);
})("FOO");
val1: FOO
val2: FOO
They both return the same result. But what is the difference?
(function (val) {
console.log("val1: ", val);
}("FOO"));
(function (val) {
console.log("val2: ", val);
})("FOO");
val1: FOO
val2: FOO