Free CRT-600 Exam Braindumps (page: 26)

Page 25 of 57

Given the following code:
document.body.addEventListener(` click ', (event) => { if (/* CODE REPLACEMENT HERE */) {
console.log(`button clicked!');
)
});
Which replacement for the conditional statement on line 02 allows a developer to correctly determine that a button on page is clicked?

  1. Event.clicked
  2. e.nodeTarget ==this
  3. event.target.nodeName == `BUTTON'
  4. button.addEventListener(`click')

Answer(s): C



Universal Container(UC) just launched a new landing page, but users complain that the website is slow. A developer found some functions that cause this problem. To verify this, the developer decides to do everything and log the time each of these three suspicious functions consumes.
console.time(`Performance');
maybeAHeavyFunction();
thisCouldTakeTooLong();
orMaybeThisOne();
console.endTime(`Performance');
Which function can the developer use to obtain the time spent by every one of the three functions?

  1. console.timeLog()
  2. console.getTime()
  3. console.trace()
  4. console.timeStamp()

Answer(s): A



Refer to the code below:
console.log(`'start);
Promise.resolve(`Success') .then(function(value){
console.log(`Success');
});
console.log(`End');
What is the output after the code executes successfully?

  1. End
    Start
    Success
  2. Start
    Success
    End
  3. Start
    End
    Success
  4. Success
    Start
    End

Answer(s): C



Refer to HTML below:
<div id ="main">
<div id = " card-00">This card is smaller.</div>
<div id = "card-01">The width and height of this card is determined by its contents.</div>
</div>
Which expression outputs the screen width of the element with the ID card-01?

  1. document.getElementById(` card-01 ').getBoundingClientRest().width
  2. document.getElementById(` card-01 ').style.width
  3. document.getElementById(` card-01 ').width
  4. document.getElementById(` card-01 ').innerHTML.lenght*e

Answer(s): A






Post your Comments and Discuss Salesforce CRT-600 exam with other Community members:

CRT-600 Discussions & Posts