JavaScript-Developer-I試験無料問題集「Salesforce Certified JavaScript Developer (JS-Dev-101) 認定」

Refer to the following object:
const dog = {
firstName: ' Beau ' ,
lastName: ' Boo ' ,
get fullName() {
return this.firstName + ' ' + this.lastName;
}
};
How can a developer access the fullName property for dog?

解説: (GoShiken メンバーにのみ表示されます)
A developer has a fizzbuzz function that, when passed in a number, returns the following:
* ' fizz ' if the number is divisible by 3.
* ' buzz ' if the number is divisible by 5.
* ' fizzbuzz ' if the number is divisible by both 3 and 5.
* Empty string if the number is divisible by neither 3 nor 5.
Which two test cases properly test scenarios for the fizzbuzz function?

解説: (GoShiken メンバーにのみ表示されます)
for (let number = 2; number < = 5; number += 1) {
// faster code statement here
}
Which statement meets the requirements to log an error when the Boolean statement evaluates to false?

解説: (GoShiken メンバーにのみ表示されます)
Refer to the code below:
01 const server = require( ' server ' );
02
03 // Insert code here
A developer imports a library that creates a web server. The imported library uses events and callbacks to start the server.
Which code should be inserted at line 03 to set up an event and start the web server?

解説: (GoShiken メンバーにのみ表示されます)
A developer initiates a server with the file server.js and adds dependencies in the source code ' s package.json that are required to run the server.
Which command should the developer run to start the server locally?

解説: (GoShiken メンバーにのみ表示されます)
Console logging methods that allow string substitution:

正解:B,C,D,E 解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
Given:
const str = ' Salesforce ' ;
Which two statements result in ' Sales ' ?

解説: (GoShiken メンバーにのみ表示されます)
Refer to the code below:
01 async function functionUnderTest(isOK) {
02 if (isOK) return ' OK ' ;
03 throw new Error( ' not OK ' );
04 }
Which assertion accurately tests the above code?

解説: (GoShiken メンバーにのみ表示されます)
Refer to the code declarations below:
let str1 = ' Java ' ;
let str2 = ' Script ' ;
Which three expressions return the string JavaScript?

正解:B,C,E 解答を投票する
解説: (GoShiken メンバーにのみ表示されます)