LoginSignup
0

More than 3 years have passed since last update.

JSメソッド集 自分用

Last updated at Posted at 2020-05-23

配列

配列の最後にデータを追加する

配列名.push(追加したいデータ)

配列の最後のデータを削除する

配列名.pop()

配列の最初のデータを削除する

配列名.shift()

配列の最初のデータ1,データ2を削除する

配列名.unshift()

テンプレート文字列

「’’(バックティック)」で囲む。

普通の文字列のと違い

・文字列中に変数を埋め込める

${変数名}

例:const total =`<li>${item}</li>`

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