Skip to content

Instantly share code, notes, and snippets.

@yuppism
Created September 22, 2011 04:12
Show Gist options
  • Save yuppism/1234014 to your computer and use it in GitHub Desktop.
Save yuppism/1234014 to your computer and use it in GitHub Desktop.
関数を定義する方法その2 (無名関数を使う)
var speak = function (){ alert("hello"); }
speak(); // "hello"と出力
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment