JavaScript-Developer-I 試験問題を無料オンラインアクセス
| 試験コード: | JavaScript-Developer-I |
| 試験名称: | Salesforce Certified JavaScript Developer (JS-Dev-101) |
| 認定資格: | Salesforce |
| 無料問題数: | 149 |
| 更新日: | 2026-06-08 |
A team at Universal Containers works on a big project and uses yarn to manage the project ' s dependencies.
A developer added a dependency to manipulate dates and pushed the updates to the remote repository. The rest of the team complains that the dependency does not get downloaded when they execute yarn .
What could be the reason for this?
Refer to the following code:
01 let obj = {
02 foo: 1,
03 bar: 2
04 }
05 let output = []
06
07 for (let something of obj) {
08 output.push(something);
09 }
10
11 console.log(output);
What is the value of output on line 11?
At Universal Containers, every team has its own way of copying JavaScript objects. The code snippet shows an implementation from one team:
01 function Person() {
02 this.firstName = " John " ;
03 this.lastName = " Doe " ;
04 this.name = () = > {
05 console.log( ' Hello ${this.firstName} ${this.lastName} ' );
06 }
07 }
08
09 const john = new Person();
10 const dan = JSON.parse(JSON.stringify(john)); // (intended deep copy)
11 dan.firstName = ' Dan ' ;
12 dan.name();
(Original line 10 is logically intended to be JSON.parse(JSON.stringify(john)) to perform a JSON clone.) What is the output of the code execution?
Refer to the code below:
01 let sayHello = () = > {
02 console.log( ' Hello, World! ' );
03 };
Which code executes sayHello once , two minutes from now?