[2026年02月] 問題集練習試験問題学習ガイドはJavaScript-Developer-I試験合格させます
JavaScript-Developer-I問題集には練習試験問題解答
Salesforce JavaScript-Developer-I 認定試験は、Salesforceコミュニティ内で非常に尊敬されている認定資格です。この認定試験は、開発者がSalesforce開発のスキルと専門知識を示す素晴らしい方法であり、雇用主からも貴重な資格として認められています。この認定試験は、プラットフォームの変更を反映するために定期的に更新されるため、開発者がSalesforce開発の最新のトレンドやベストプラクティスについて学ぶための素晴らしい方法でもあります。
質問 # 112
developer uses the code below to format a date.
After executing, what is the value of formattedDate?
- A. June 10, 2020
- B. May 10, 2020
- C. October 05, 2020
- D. November 05, 2020
正解:A
質問 # 113
Which three actions can be using the JavaScript browser console?
Choose 3 answers:
- A. View and change DOM the page.
- B. view , change, and debug the JavaScript code of the page.
- C. View and change security cookies.
- D. Run code that is not related to page.
- E. Display a report showing the performance of a page.
正解:A、B、D
質問 # 114 
Which code change should be done for the console to log the following when 'Click me!' is clicked'
> Row log
> Table log
- A. Change line 10 to event.stopPropagation (false) ;
- B. Remove line 10
- C. Remove lines 13 and14
- D. Change line 14 to elem.addEventListener ('click', printMessage, true);
正解:B
質問 # 115
A developer wrote the following code to test a sum3 function that takes in an array of numbers and returns the sum of the first three numbers in the array, and the test passes.
A different developer made changes to the behavior of sum3 to instead sum only the first two numbers present in the array.
Which two results occur when running this test on the updated sum3 function?
Choose 2 answers
- A. The line 02 assertion fails.
- B. The line 02 assertion passes.
- C. The line 05 assertion passes.
- D. The line 05 assertion fails.
正解:B、D
質問 # 116
Refer to the code below:
01 const exec = (item, delay) =>{
02 new Promise(resolve => setTimeout( () => resolve(item), delay)),
03 async function runParallel() {
04 Const (result1, result2, result3) = await Promise.all{
05 [exec ('x', '100') , exec('y', 500), exec('z', '100')]
06 );
07 return `parallel is done: $(result1) $(result2)$(result3)`;
08 }
}
}
Which two statements correctly execute the runParallel () function?
Choose 2 answers
- A. runParallel () .then(function(data)
return da - B. runParallel () .then(data);
- C. Async runParallel () .then(data);
- D. runParallel ( ). done(function(data){
return data;
});
正解:A、D
質問 # 117
Which statement accurately describes the behavior of the async /swait keywords?
- A. The associated function sometimes returns a promise.
- B. The associated class contains some asynchronous functions.
- C. The associated function will always return a promise.
- D. The associated function can only be called via asynchronous methods.
正解:C
質問 # 118
Refer to the code below:
for(let number =2 ; number <= 5 ; number += 1 ) {
// insert code statement here
}
The developer needs to insert a code statement in the location shown. The code
statement has these requirements:
1. Does require an import
2. Logs an error when the boolean statement evaluates to false
3. Works in both the browser and Node.js
Which meet the requirements?
- A. console.assert(number % 2 === 0);
- B. console.error(number % 2 === 0);
- C. console.debug(number % 2 === 0);
- D. assert (number % 2 === 0);
正解:B
質問 # 119
A developer is asked to fix some bugs reported by users. To do that, the developer adds a breakpoint for debugging.
When the code execution stops at the breakpoint on line 06, which two types of information are available In the browser console? Choose 2 answers
- A. The information stored in the window.localStorage property.
- B. A variable's displaying the number of instances created for the Car object.
- C. The value of the carSpeed and fourWheel variables
- D. The style, event listeners and other attributes applied to the carSpeed DOM element.
正解:A、D
質問 # 120
Refer to code below:
Let a ='a';
Let b;
// b = a;
console.log(b);
What is displayed when the code executes?
- A. Undefined
- B. ReferenceError: b is not defined
- C. A
- D. Null
正解:A
質問 # 121
Refer to the following code:
Which statement should be added to line 09 for the code to display 'The boat has a capacity of 10 people?
- A. ship.size size;
- B. this.size = size;
- C. super.size = size;
- D. super (size);
正解:B
質問 # 122
A developer is debugging a web server that uses Node.js The server hits a runtimeerror
every third request to an important endpoint on the web server.
The developer added a break point to the start script, that is at index.js at he root of the
server's source code. The developer wants to make use of chrome DevTools to debug.
Which command can be run to access DevTools and make sure the breakdown is hit ?
- A. Node --inspect index.js
- B. Node inspect index.js
- C. Node --inspect-brk index.js
- D. node -i index.js
正解:A
質問 # 123
A developer writes the code below to calculate the factorial of a given number function sum(number){ return number * sum(number-1);
}
sum(3);
what is the result of executing the code.
- A. -Infinity
- B. 0
- C. 1
- D. Error
正解:D
質問 # 124
Refer to code below:
Const objBook = {
Title: 'Javascript',
};
Object.preventExtensions(objBook);
Const newObjBook = objBook;
newObjectBook.author ='Robert';
What are the values of objBook and newObjBook respectively ?
- A. {author: "Robert"}{author: "Robert", title: "javaScript}
- B. [title: "javaScript"] [title: "javaScript"]
- C. {author: "Robert", title: "javaScript}Undefined
- D. {author: "Robert", title: "javaScript}{author: "Robert", title: "javaScript}
正解:B
質問 # 125
Refer to the code below:
Let car1 = new Promise((_ , reject) =>
setTimeout(reject, 2000, "car 1 crashed in" =>
Let car2 =new Promise(resolve => setTimeout(resolve, 1500, "car 2 completed") Let car3 =new Promise(resolve => setTimeout(resolve, 3000, "car 3 completed") Promise.race(( car1, car2, car3))
.then (value => (
Let result = '$(value) the race.';)}
.catch(arr => {
console.log("Race is cancelled.", err);
});
What is the value of result when Promise.race executes?
- A. Race is cancelled.
- B. Car 3 completes the race
- C. Car 2 completed the race.
- D. Car 1 crashed in the race.
正解:C
質問 # 126
Refer to the following object:
const cat ={
firstName: 'Fancy',
lastName: ' Whiskers',
Get fullName() {
return this.firstName + ' ' + this.lastName;
}
};
How can a developer access the fullName property for cat?
- A. cat.fullName()
- B. cat.function.fullName()
- C. cat.fullName
- D. cat.get.fullName
正解:C
質問 # 127
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 we.
The developer also wants to add error logging if a connection fails.
Given this info, which code segment shows the correct way to set up a client with two events that listen at execution time?
- A. try{
ws.connect (( ) => {
console.log('connected to client'); });
} catch(error) { console.log('ERROR' , error); };
} - B. ws.connect (( ) => {
console.log('connected to client'); }).catch((error) => { console.log('ERROR' , error); }}; - C. ws.on ('connect', ( ) => { console.log('connected to client'); }}; ws.on('error', (error) => { console.log('ERROR' , error); }};
- D. ws.on ('connect', ( ) => {
console.log('connected to client'); ws.on('error', (error) => { console.log('ERROR' , error); });
});
正解:C
質問 # 128
A developer creates a new web server that uses Node.js. It imports a server library that uses events and callbacks for handling server functionality.
The server library is imported with require and is made available to the code by a variable named server. The developer wants to log any issues that the server has while booting up.
Given the code and the information the developer has, which code logs an error at boot time with an event?
A)
B)
C)
D)
- A. Option C
- B. Option A
- C. Option B
- D. Option D
正解:A
質問 # 129
A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:
Import printPrice from '/path/PrincePrettyPrint. Js';
Based on the code, what must be true about the printPrice function of the PricePrettyPrint modules for this import to work?
- A. printPrice must be an all export
- B. printPrice must be named export
- C. printPrice must be an default export
- D. printPrice must be a multi export
正解:B
質問 # 130
Refer the following code
what is the value of array after code executes?
正解:
解説:
[ 1, 2, 3, 5 ]
質問 # 131
Given the code below:
01 function GameConsole (name) {
02 this.name = name;
03 }
04
05 GameConsole.prototype.load = function(gamename) {
06 console.log( ` $(this.name) is loading a game : $(gamename) ...`);
07 )
08 function Console 16 Bit (name) {
09 GameConsole.call(this, name) ;
10 }
11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;
12 //insert code here
13 console.log( ` $(this.name) is loading a cartridge game : $(gamename) ...`);
14 }
15 const console16bit = new Console16bit(' SNEGeneziz ');
16 console16bit.load(' Super Nonic 3x Force ');
What should a developer insert at line 15 to output the following message using the method ?
> SNEGeneziz is loading a cartridge game: Super Monic 3x Force . . .
- A. Console16bit.prototype.load(gamename) = function() {
- B. Console16bit = Object.create(GameConsole.prototype).load = function
(gamename) { - C. Console16bit.prototype.load = function(gamename) {
- D. Console16bit.prototype.load(gamename) {
正解:C
質問 # 132
......
無料Salesforce Developer JavaScript-Developer-I試験問題:https://www.passtest.jp/Salesforce/JavaScript-Developer-I-shiken.html
JavaScript-Developer-IはSalesforce Developer実際の無料試験練習テスト:https://drive.google.com/open?id=1LYOr--66TgjQDxnDiE7g_Ww3KHn8sWdR