LoginSignup
0
0

More than 3 years have passed since last update.

テンプレート文字列(アウトプット)

Posted at

テンプレート文字列

文字列連結で使用します。

使い方

例 時を連結したい

<script>
  const today = new Date();
  let hour = today.getHours();
  document.write(`${hour}時`);
</script>

document.write(${hour}時);
` = バッククォンテーション

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