0
4

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 1 year has passed since last update.

【JavaScript】超絶初心者のための配列・連想配列の基本構文

Last updated at Posted at 2022-12-28

配列・連想配列

配列

宣言

  • 空で宣言
const array = [];
  • 値を入れて宣言
const array = ["ナルト","サスケ","サクラ"];

連想配列

宣言

  • 空で宣言
const array = {};
  • 値を入れて宣言
const array = {name:"ナルト", gender:"", team:"第7班"};

追加

  • パターン1
array.pet = "九尾";
  • パターン2
array['pet'] = "九尾";
0
4
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
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?