JS-Dev-101試験無料問題集「Salesforce Certified JavaScript Developer - Multiple Choice 認定」

A developer uses a parsed JSON string to work with user information as in the block below:
01 const userInformation = {
02 "id": "user-01",
03 "email": "[email protected]",
04 "age": 25
05 };
Which two options access the email attribute in the object?

解説: (GoShiken メンバーにのみ表示されます)
A developer at Universal Containers creates a new landing page based on HTML, CSS, and JavaScript.
To ensure that visitors have a good experience, a script named personalizeWebsiteContent needs to be executed to do some custom initialization when the webpage is fully loaded with HTML content and all related files.
Which statement should be used to call personalizeWebsiteContent based on the above business requirement?

解説: (GoShiken メンバーにのみ表示されます)
A developer executes:
document.cookie;
document.cookie = 'key=John Smith';
What is the behavior?

解説: (GoShiken メンバーにのみ表示されます)
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?

解説: (GoShiken メンバーにのみ表示されます)
Given the code below:
let numValue = 1982;
Which three code segments result in a correct conversion from number to string?

正解:B,C,D 解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
Given a value, which three options can a developer use to detect if the value is NaN?

正解:B,D,E 解答を投票する
Refer to the code below (assuming Promise.race is intended):
let cat3 = new Promise(resolve =>
setTimeout(resolve, 3000, "Cat 3 completes")
);
Promise.race([cat1, cat2, cat3])
.then(value => {
let result = `${value} the race.`;
})
.catch(err => {
console.log("Race is cancelled:", err);
});
(Assuming cat1 and cat2 are similar to earlier examples: cat2 resolves fastest.) What is the value of result when Promise.race executes?

解説: (GoShiken メンバーにのみ表示されます)
A developer wants to advocate for a mature, well-supported web framework/library instead of a new one (Minimalist.js).
Which two should be recommended?

解説: (GoShiken メンバーにのみ表示されます)
Given the code below:
01 setCurrentUrl();
02 console.log("The current URL is: " + url);
03
04 function setCurrentUrl() {
05 url = window.location.href;
06 }
What happens when the code executes?

解説: (GoShiken メンバーにのみ表示されます)