約39,900件1ページ目

条件を指定して検索しています。すべての条件を解除する

  • 対象とする言語:日本語
  • 2025/9/18 -constructor メソッドは、クラスで作成されたオブジェクトインスタンスの生成と初期化を行うための特殊なメソッドです。

    2025/8/26 -この例の出力は次のとおりです。 theTree.constructor is function Tree(name) { this.name = name; }. オブジェクトへの constructor プロパティの代入.

    2017/12/22 -The Function constructor creates a new Function object. Calling the constructor directly can create functions dynamically, but suffers from ...

    class UserAuth { constructor(user) { this.user = user; } verifyCredentials() { // ... } } class UserSettings { constructor(user) { this.user = user; this.

    > このページでは `constructor` の構文を紹介します。すべてのオブジェクトに存在する `constructor` プロパティについては、 {{jsxref("Object.prototype.constructor")} ...

    2022/10/21 -You can also create a factory function by using a constructor function. function Robot(name) { this ...

    コンストラクタにはメソッドと2つのプロパティがあります:「オブジェクト.length」(常に1)と 「オブジェクト.prototype」. EXPLANATION: Functions in javascript ...

    2025/12/3 -定義例 · User 関数内で this にプロパティを設定する。 · メソッドは User. · new User(...) を行うと、空オブジェクトが生成され、 this に紐づけられ、 ...

    コンストラクター関数は、同じ構造と動作を持つ複数のオブジェクトを作成できる、JavaScriptの特別な関数です。 Person のコンストラクター関数を定義します。

    ... constructor: function(name, isGeek) { * this.isGeek = isGeek; * * // Apply a method from the parent class' prototype * this.callParent([name]); * * return ...