Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam CRT-600 Topic 2 Question 85 Discussion

Actual exam question for Salesforce's CRT-600 exam
Question #: 85
Topic #: 2
[All CRT-600 Questions]

Given the HTML below:

Which statement adds the priority-account css class to the Applied Shipping row?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Jerry
2 months ago
A) is the way to go. The B option looks like it was written by someone who just had a coffee break and forgot how to JavaScript.
upvoted 0 times
...
Tess
2 months ago
I'm pretty sure the answer is A. Who needs to query when you can just select the element, right? This is like finding a needle in a haystack with a magnet!
upvoted 0 times
Crista
1 months ago
Definitely, no need to complicate things with unnecessary queries.
upvoted 0 times
...
Elbert
1 months ago
Yeah, using querySelector is more straightforward.
upvoted 0 times
...
Krystal
2 months ago
I think you're right, A seems like the correct answer.
upvoted 0 times
...
...
Aliza
2 months ago
I'm not sure, but I think option A makes sense because it specifies the correct class to add to the element.
upvoted 0 times
...
Luisa
2 months ago
B) document.query('#row-as').classList.add('priority-account') is not correct, as there is no such method as 'document.query()'. The correct method is 'document.querySelector()'.
upvoted 0 times
...
Mariko
2 months ago
I agree with Tennie, option A seems to be the correct one based on the given HTML.
upvoted 0 times
...
Tennie
3 months ago
I think the answer is A because it uses the correct syntax for selecting an element by id.
upvoted 0 times
...
Danilo
3 months ago
The correct answer is A) document.querySelector('#row-as').classList.add('priority-account'). This selects the element with the ID 'row-as' and adds the 'priority-account' class to it.
upvoted 0 times
Jettie
1 months ago
Thanks for the clarification!
upvoted 0 times
...
Sharita
1 months ago
Yes, that's correct. It selects the element with the ID 'row-as' and adds the 'priority-account' class to it.
upvoted 0 times
...
Bernardo
1 months ago
I think the correct answer is A) document.querySelector('#row-as').classList.add('priority-account')
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77