2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

JavaScript テンプレートリテラル

Last updated at Posted at 2021-08-05

JavaScriptの学習の備忘録と振り返りの記事です。
何かの参考になれば幸いです。
付け足しや訂正などある場合ご教授いただけると
大変嬉しく思います!!

#テンプレートレテラルとは
文字列の中に変数や定数を入れ込めるものです

文字列は必ずバッククオテーションで囲う

宣言
${}

const I = "yuka";
let number = 5;

console.log(`${I} has ${number}`);

出力結果
yuka has 5

2
0
1

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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?