約2,520件1ページ目

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

  • 対象とする言語:日本語
  • 2026/7/9 -A variable is a "labeled box". Use const name = value; to give a value a name and store it. · = is an action that means "put into".

    2026/1/29 -In JavaScript development, it is extremely common to use the const keyword to declare variables. However, when dealing with objects, const only ...

    2026/5/30 -"Basically, everything is const! Only use let when you absolutely plan to rewrite it later. Just by following this etiquette, the safety of your ...

    ```typescript // JavaScript / TypeScript const list = [1, 2, 3, 4, 5]; const result = list.map(i => i * 2); ``` <div class="translation"> 単純な ...

    2024/8/4 -This syntax is useful for exporting multiple variables at once, and it also allows you to change the export name using the as keyword. Now, ...

    Remember that in JavaScript, declaring an object or an array as a “const”, does not mean its values are frozen. Values in the object can still be changed ...

    4日前 -You can assign new values to variables declared with let. On the other hand, variables declared with const cannot be reassigned. const MAX_COUNT ...

    This rule disallows duplicate keys in object literals. Examples of incorrect code for this rule: コピー. /*eslint no-dupe-keys: "error"*/

    javascript const Animal = function(age) { if (!(this instanceof Animal)) { throw new Error("Instantiate Animal with `new`"); } this.age = age; }; Animal ...

    state 変数の宣言を [something, setSomething] のペアの形で行うのが便利であるもうひとつの理由は、state 変数を複数使いたくなった場合にそれらに異なる名前をつける ...