Js's question about self-executing functions.

var arr;
console.log (arr)
(function (a) {console.log (a)})
(arr)

clipboard.png

Dec.21,2021

var arr;
console.log (arr);
(function (a) {console.log (a);}) (arr)
not added; all are cults


because you are ambiguous in writing that way, your code will be automatically formatted in ESLint as:

var arr
console.log(arr)(function (a) {
  console.log(a)
})(arr)

learn ESLint and you won't have such a problem. You can change it to this:

var arr
console.log(arr)
;(function (a) { console.log( a ) })( arr )

the teacher said, (the semicolon should be preceded by the line at the beginning of [{]

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54fed-4ca01.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54fed-4ca01.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?