LoginSignup
21
7

More than 5 years have passed since last update.

ES6:文字列で式展開する方法

Last updated at Posted at 2017-09-17

` (バッククオート)で文字列を囲み、その中で  ${} を使えばよし

let interest = 'React Native'

console.log(`I am interested in ${interest}`) // I am interested in React Native

参考

21
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
7