Created
August 23, 2015 02:56
-
-
Save chuck0523/b4918185c505a12a61a5 to your computer and use it in GitHub Desktop.
This file contains 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
# Object | |
### | |
var m = { | |
name : 'chuck', | |
score : 80 | |
} | |
### | |
# シンプルに書ける | |
m = name: 'chuck', score: 80 | |
# インデントで表現することも可 | |
m = | |
name : 'chuck' | |
score : 80 | |
# 入れ子はこんな感じ | |
n = | |
name : 'chuck' | |
score : | |
first : 80 | |
second : 70 | |
third : 90 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment