Last active
May 29, 2016 04:10
-
-
Save nishinoshake/83f8c4c615ac3fec8f2e to your computer and use it in GitHub Desktop.
とりあえずJSはこんな風に書くことにする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function () { | |
// 変数は一番上ででまとめて宣言 | |
var i, | |
j, | |
k; | |
// functionの()はくっつける | |
// ,のあとはスペース | |
// ()の内側はすべてくっつける | |
function hoge(value1, value2) { | |
// 条件分岐とかの()は左右にスペース | |
// ;のあとはスペース | |
for (var i; i < 0; i++) { | |
// Oops | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment