-
-
Save chuck0523/c90e6cb6301df89acf8e 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
//Template Strings | |
//バッククオートで囲む | |
`simple text` // 'simple text'と同値 | |
//複数行 | |
`multiline | |
text` // "multiline\ntext" | |
//変数埋め込み | |
var count = 1, obj = {foo: 'bar'}; | |
//ES5 | |
'count is ' + count + ', obj.foo is ' + obj.foo; | |
//ES6 | |
'count is ${count}, obj.foo is ${obj.foo}'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment