Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created Jun 30, 2015
Embed
What would you like to do?
//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