最新的Salesforce Certified JavaScript Developer (JS-Dev-101) - JavaScript-Developer-I免費考試真題

After user acceptance testing, the developer is asked to change the webpage background based on the user's location. It works on the developer's computer but not on the tester's machine.
Which two actions will help determine accurate results?

正確答案: A,D
說明:(僅 Fast2test 成員可見)
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?

正確答案: B
說明:(僅 Fast2test 成員可見)
A class was written to represent regular items and sale items. Code:
01 let regItem = new Item( ' Scarf ' , 55);
02 let saleItem = new SaleItem( ' Shirt ' , 80, .1);
03 Item.prototype.description = function() { return ' This is a ' + this.name; }
04 console.log(regItem.description());
05 console.log(saleItem.description());
06
07 SaleItem.prototype.description = function() { return ' This is a discounted ' + this.name; }
08 console.log(regItem.description());
09 console.log(saleItem.description());
What is the output?

正確答案: D
說明:(僅 Fast2test 成員可見)
Given a value, which three options can a developer use to detect if the value is NaN?

正確答案: A,C,E
說明:(僅 Fast2test 成員可見)
Refer to the code:
01 const event = new CustomEvent(
02 // Missing code
03 );
04 obj.dispatchEvent(event);
A developer needs to dispatch a custom event called update to send information about recordId.
Which two options can be inserted at line 02?

正確答案: B,C
說明:(僅 Fast2test 成員可見)
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?

正確答案: A
說明:(僅 Fast2test 成員可見)
A developer removes the HTML class attribute from the checkout button, so now it is simply:
< button > Checkout < /button >
There is a test to verify the existence of the checkout button, however it looks for a button with class= " blue "
. The test fails because no such button is found.
Which type of test category describes this test?

正確答案: C
說明:(僅 Fast2test 成員可見)

聯系我們

如果您有任何問題,請留下您的電子郵件地址,我們將在12小時內回复電子郵件給您。

我們的工作時間:( GMT 0:00-15:00 )
週一至週六

技術支持: 立即聯繫 

English 日本語 Deutsch 한국어