Way2tutorial Snippet Editor
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript Anonymous Function</title> </head> <body> <script type="text/javascript"> var msg; (function(msg){ alert("hello world!"); })(msg); </script> </body> </html>