Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created August 23, 2015 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/c879c8f640594c396610 to your computer and use it in GitHub Desktop.
Save chuck0523/c879c8f640594c396610 to your computer and use it in GitHub Desktop.
# comment
###
multi-line comment
###
###
1. var 要らず
2. 文末の; は不要
3. {}のブロックも不要
4. ()は曖昧性がない場合は不要
var score = 82;
if( score > 80 ) {
console.log('ok');
}
↑こう書かなきゃいけないところが、以下のようになります
###
score = 82
if score > 80
console.log 'ok'
# すっきりした!
# JSをそのまま埋め込む
`alert('ok')`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment