Skip to content

Commit c4f5158

Browse files
author
Ricardo Bin
committed
Less parentheses in immediate functions
1 parent d72614c commit c4f5158

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

function-patterns/immediate-functions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
Description: syntax that enables function execution as soon as it is defined
1111
*/
1212

13-
(function () {
13+
!function () {
1414
console.log('watch out!');
15-
}());
15+
}();
1616

1717
// reference
1818
// http://www.jspatterns.com/

0 commit comments

Comments
 (0)