use of anonymous function code example
Example: An anonymous function
(function() {
console.log('Code runs!')
})();
// or
!function() {
console.log('Code runs!')
}();
(function() {
console.log('Code runs!')
})();
// or
!function() {
console.log('Code runs!')
}();