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

JavaScript忘備録

Posted at

solidityの初歩を勉強した。理解を深めるためにJavaScriptもやっておく。

classとインスタンス

classとはユーザーのデータなどがつまったオブジェクトを作るための設計図。
インスタンスとはclassを使って作成され空のオブジェクトのこと。

class Animal{
//classの中身を作るmd
 constructor(){
  console.log("こんにちは")
}
const animal = new Animal();
//pythonと違ってnewをつけてる。
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?