BlackFriday 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
1 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
1 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
6 days ago
Definitely, no need to complicate things with unnecessary queries.
upvoted 0 times
...
Elbert
13 days ago
Yeah, using querySelector is more straightforward.
upvoted 0 times
...
Krystal
21 days ago
I think you're right, A seems like the correct answer.
upvoted 0 times
...
...
Aliza
1 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
1 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
1 months ago
I agree with Tennie, option A seems to be the correct one based on the given HTML.
upvoted 0 times
...
Tennie
2 months ago
I think the answer is A because it uses the correct syntax for selecting an element by id.
upvoted 0 times
...
Danilo
2 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
9 days ago
Thanks for the clarification!
upvoted 0 times
...
Sharita
10 days 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
11 days ago
I think the correct answer is A) document.querySelector('#row-as').classList.add('priority-account')
upvoted 0 times
...
...

Save Cancel