Created
July 1, 2016 07:34
-
-
Save jsgao0/8d34ffcf2f793b7fe36c0fb295511155 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
// Define JSON. | |
var contents = { | |
'en-US': { | |
'title': 'Hello!' | |
}, | |
'zh-TW': { | |
'title': '哈囉!' | |
} | |
}; | |
// Retrieve title of zh-TW. | |
contents['zh-TW'].title; // output: 哈囉! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment