Salesforce Certified JavaScript Developer I (CRT-600日本語版) - CRT-600日本語 Free Exam Questions

QUESTION NO: 1
次のコードを参照してください。
class Vehicle{
constructor(plate){
this.plate = plate;
}
}
class Truck extends Vehicle{
constructor(plate, weight){
//Missing code
this.weight = weight;
}
displayWeight(){
console.log(`The truck ${this.plate} has a weight of ${this.weight}lb.`);
}
}let myTruck = new Truck('123Ab',5000);
myTruck.displayWeight();
コードが「トラック 123AB の重量は 5000 ポンドです。

Correct Answer: C Vote an answer
QUESTION NO: 2
utils という名前のモジュールをインポートする次のコードを参照してください。
import (foo, bar) from '/path/Utils.js';
foo() ;
バー() ;
上記のコードがエラーなしで実行されるように、foo と bar をエクスポートする Utils.js の 2 つの実装はどれですか?
2つの答えを選択してください

Correct Answer: A,B Vote an answer
QUESTION NO: 3
以下のコードを指定します。
setTimeout (() => (
console.log(1);
). 0);
console.log(2);
New Promise ((resolve, reject )) = > (
setTimeout(() => (
reject(console.log(3));
). 1000);
)).catch(() => (
console.log(4);
));
console.log(5);
コンソールには何が記録されますか?

Correct Answer: C Vote an answer
QUESTION NO: 4
ユニバーサル コンテナ (UC) は新しいランディング ページを立ち上げたばかりですが、ユーザーは Web サイトが遅いと不満を漏らしています。開発者は、この問題を引き起こすいくつかの機能を発見しました。これを確認するために、開発者はあらゆることを行い、これら 3 つの疑わしい機能のそれぞれが消費する時間を記録することにしました。
console.time('パフォーマンス');
多分AHeavyFunction();
thisCouldTakeTooLong();
orMaybeThisOne();
console.endTime('パフォーマンス');
開発者は、3 つの関数のそれぞれが費やした時間を取得するためにどの関数を使用できますか?

Correct Answer: C Vote an answer
QUESTION NO: 5
以下のコード スニペットを参照してください。
配列 = [1, 2, 3, 4, 4, 5, 4, 4];
For (let i =0; i < array.length; i++)
もし (配列[i] === 4) {
array.splice(i, 1);
}
}
コード実行後の配列の値は?

Correct Answer: B Vote an answer
Explanation: Only visible for Actual4test members. You can sign-up / login (it's free).
QUESTION NO: 6
開発者は、配列内の要素の合計を計算する関数を作成する必要がありますが、コードが実行されるたびに未定義になります。開発者は、以下のコードに欠けているものを見つける必要があります。
Const sumFunction = arr => {
Return arr.reduce((result, current) => {
//
Result += current;
//
), 10);
);
コードを期待どおりに動作させるオプションはどれですか?

Correct Answer: B Vote an answer
QUESTION NO: 7
開発者には、次の時間給の配列があります。
arr = (8, 5, 9, 75, 11, 25, 7, 75, , 13, 25);
時給が $10 未満の労働者の場合、レートは 1.25 の倍数であり、新しい配列で返されます。
開発者はリクエストをどのように実装する必要がありますか?

Correct Answer: B Vote an answer
QUESTION NO: 8
以下のコードを参照してください。
Const objBook = {
タイトル: 'Javascript',
};
Object.preventExtensions(objBook);
Const newObjBook = objBook;
newObjectBook.author = 'ロバート';
objBook と newObjBook の値はそれぞれ何ですか?

Correct Answer: D Vote an answer
QUESTION NO: 9
以下のコードを参照してください。
let sayHello = () => {
console.log ('Hello, world!');
};
今から 2 分後に sayHello を 1 回実行するコードはどれですか?

Correct Answer: D Vote an answer
QUESTION NO: 10
再帰関数の実際の例を示す 2 つのコード スニペットはどれですか?
2つの答えを選択してください

Correct Answer: A,D Vote an answer
QUESTION NO: 11
以下の HTML を指定します。
<div>
<div id ="row-uc"> Universal Container</div>
<div id ="row-aa">Applied Shipping</div>
<div id ="row-bt"> Burlington Textiles </div>
</div>
CSS クラスの priority = account をユニバーサル コンテナーの行に追加するステートメントはどれですか?

Correct Answer: C Vote an answer
QUESTION NO: 12
開発者は、数値の配列を受け取り、配列の最初の 3 つの数値の合計を返す sum3 関数をテストするために、次のコードを作成しました。テストはパスします。
res = sum2([1, 2, 3 ]) とします。
console.assert(res === 6);
Res = sum3([ 1, 2, 3, 4]);
console.assert(res=== 6);
別の開発者が sum3 の動作を変更し、配列に存在するすべての数値を合計するようにしました。テストはパスします:
更新された sum3 関数でテストを実行したときに発生する 2 つの結果はどれですか?
2つの答えを選択してください

Correct Answer: C,D Vote an answer
QUESTION NO: 13
次のどのコード ステートメントが、オブジェクトをローカル Storage に正しく永続化しますか?

Correct Answer: A Vote an answer
Explanation: Only visible for Actual4test members. You can sign-up / login (it's free).
QUESTION NO: 14
次のコードがあるとします。

記録された最初の 4 つの数字は?

Correct Answer: B Vote an answer

QUALITY AND VALUE

Actual4test Practice Exams are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development - no all study materials.

Tested and Approved

We are committed to the process of vendor and third party approvals. We believe professionals and executives alike deserve the confidence of quality coverage these authorizations provide.

Easy to Pass

If you prepare for the exams using our Actual4test testing engine, It is easy to succeed for all certifications in the first attempt. You don't have to deal with all dumps or any free torrent / rapidshare all stuff.

Try Before Buy

Actual4test offers free demo of each product. You can check out the interface, question quality and usability of our practice exams before you decide to buy.