JavaScript-Developer-I 試験問題を無料オンラインアクセス

試験コード:JavaScript-Developer-I
試験名称:Salesforce Certified JavaScript Developer (JS-Dev-101)
認定資格:Salesforce
無料問題数:149
更新日:2026-08-12
評価
100%

問題 1

Corrected code:
let obj = {
foo: 1,
bar: 2
};
let output = [];
for (let something in obj) {
output.push(something);
}
console.log(output);
What is the output of line 11?

問題 2

A developer creates a class that represents a news story based on the requirements that a Story should have a body, author, and view count. The code is shown below:
01 class Story {
02 // Insert code here
03 this.body = body;
04 this.author = author;
05 this.viewCount = viewCount;
06 }
07 }
Which statement should be inserted in the placeholder on line 02 to allow for a variable to be set to a new instance of a Story with the three attributes correctly populated?

問題 3

A developer is setting up a new Node.js server with a client library that is built using events and callbacks.
The library:
* Will establish a web socket connection and handle receipt of messages to the server.
* Will be imported with require, and made available with a variable called ws.
* The developer also wants to add error logging if a connection fails.
Given this information, which code segment shows the correct way to set up a client with two events that listen at execution time?

問題 4

Given a value, which two options can a developer use to detect if the value is NaN?

問題 5

Refer to the code below:
01 let o = {
02 get js() {
03 let city1 = String( ' St. Louis ' );
04 let city2 = String( ' New York ' );
05
06 return {
07 firstCity: city1.toLowerCase(),
08 secondCity: city2.toLowerCase(),
09 }
10 }
11 }
What value can a developer expect when referencing o.js.secondCity?

コメントを追加

あなたのメールアドレスが公開されることはありません。個人情報に関する内容は隠されます *

insert code
画面にある文字を入力してください。