約4,830件1ページ目

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

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

    2026/8/4 -In JavaScript, functions were not just "collections of processes," but also held the role of "constructors (blueprints)" for creating objects.

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

    2026/2/22 -constructor(): A special initialization method that is automatically called exactly once when an instance (object) is generated from a class.

    2025/12/3 -コンストラクタ関数(Constructor Function); クラス構文(Class Syntax, ES6以降). これらは見た目だけでなく、内部的な動きや設計思想も異なります。

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

    2022/6/22 -When you wanted to use fields, you had no choice but to declare them inside constructor() as follows. ▽ Traditional fields. class Human { ...

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

    2026/7/25 -クラス宣言の結果となる User と言う名前の関数を作成します。関数コードは constructor メソッドです(メソッドがない場合は空と想定します)。 User.

    2021/12/19 -コンストラクタ関数はJavaScript版のクラスです。 っ ... JavaScriptのクラスは、コンストラクター関数の単なるシンタックスシュガーにすぎません。