JavaScript-Developer-I 試験問題 21

オブジェクトを文字列にシリアル化したり、JSON文字列をオブジェクトにデシリアル化したりするために使用できるJavaScriptメソッドはどれですか?
  • JavaScript-Developer-I 試験問題 22

    A developer at Universal Containers creates a new landing page based on HTML, CSS, and JavaScript.
    To ensure that visitors have a good experience, a script named personalizeWebsiteContent needs to be executed to do some custom initialization when the webpage is fully loaded with HTML content and all related files.
    Which statement should be used to call personalizeWebsiteContent based on the above business requirement?
  • JavaScript-Developer-I 試験問題 23

    開発者は、以下のブロックのように、解析済みのJSON文字列を使用してユーザー情報を操作します。

    オブジェクト内のメール属性にアクセスするオプションはどれですか?(2つ選択してください)
  • JavaScript-Developer-I 試験問題 24

    以下のコードを参照してください。
    01 function Tiger(){
    02 this.Type = 'Cat';
    03 this.size = 'large';
    04 }
    05
    06 let tony = new Tiger();
    07 tony.roar = () =>{
    08 console.log('彼らは素晴らしい1');
    09 };
    10
    11 function Lion(){
    12 this.type = 'Cat';
    13 this.size = 'large';
    14 }
    15
    16 let leo = new Lion();
    17 //ここにコードを挿入
    18 leo.roar();
    18行目の関数呼び出しを有効にするために、17行目に挿入できる2つのステートメントはどれですか?
    2つ選択してください。
  • JavaScript-Developer-I 試験問題 25

    開発者は配列の要素の合計を計算する関数を作成する必要がありますが、コードを実行するたびにundefinedエラーが発生します。開発者は、以下のコードのどこに問題があるのか​​を見つける必要があります。
    const sumFunction = arr => {
    return arr.reduce((result, current) => {
    //
    結果 += 現在の値;
    //
    )、10)
    );
    どのオプションを選択すれば、コードが期待どおりに動作しますか?