0
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 5 years have passed since last update.

JavaScript入門5~オブジェクト~

0
Posted at

オブジェクトとは#

複数のプロパティを持つデータのまとまり.

オブジェクトの作り方#

var 変数名 = {};
var 変数名 = {プロパティ名1:データ,プロパティ名2:データ,... ,プロパティ名x:データ}

例###

var 変数名 = {title:`JavaScript入門`, price: 2500, stock: 3};

プロパティ##

プロパティの書式 プロパティ名:データ
プロパティのデータを読み取る① オブジェクト名.プロパティ名
プロパティのデータを読み取る② オブジェクト名[`プロパティ名`]
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?