Home > Article > Web Front-end > Learn about JS! /+/-/~ function() {/*...*/}() What does it mean?
Self-executing anonymous function:
To summarize, the main functions of the execution function are anonymous and automatic execution. The code is already running when it is interpreted.
Other writing methods
(function () { /* code */ } ()); !function () { /* code */ } (); ~function () { /* code */ } (); -function () { /* code */ } (); +function () { /* code */ } ();
Related learning tutorials: javascript tutorial
The above is the detailed content of Learn about JS! /+/-/~ function() {/*...*/}() What does it mean?. For more information, please follow other related articles on the PHP Chinese website!