2
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と仲良くなるための一歩 第24話「メソッド」

Last updated at Posted at 2017-08-08

#問題

ECMAScriptの言語仕様にメソッドは存在する?しない?

a: 存在する。
b: 存在しない。

:mouse:
:cow:
:tiger:
:rabbit:
:dragon_face:
:snake:
:horse:
:sheep:
:monkey_face:
:bird:
:dog:
:boar:
:mouse:
:cow:
:tiger:
:rabbit:
:dragon_face:
:snake:
:horse:
:sheep:
:monkey_face:
:bird:
:dog:
:boar:

正解はa。ECMAScriptの言語仕様にメソッドは存在する。

ECMAScriptでは、
プロパティの値としての関数を、メソッドと呼んでいます。

参考:https://tc39.github.io/ecma262/#sec-method

4.3.31method
function that is the value of a property

NOTE
When a function is called as a method of an object,
the object is passed to the function as its this value.
2
0
7

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
2
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?