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 Javascript Developer I Topic 4 Question 93 Discussion

Actual exam question for Salesforce's Javascript Developer I exam
Question #: 93
Topic #: 4
[All Javascript Developer I 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:

Lavonna
20 days ago
Haha, I bet the exam writer is trying to trip us up with all these options. But A is the clear winner here.
upvoted 0 times
Caitlin
3 days ago
I agree, A is the correct answer.
upvoted 0 times
...
...
Lindsey
22 days ago
A, no doubt. Simple and effective solution.
upvoted 0 times
...
Cordell
25 days ago
A is the way to go. Clean and efficient!
upvoted 0 times
Felton
1 days ago
I think A is the correct answer.
upvoted 0 times
...
...
Alexis
1 months ago
A looks good, but I'm curious if there are any other ways to target that row dynamically.
upvoted 0 times
Hollis
1 days ago
C) document.getElementsByClassName('row-as')[0].classList.add('priority-account');
upvoted 0 times
...
Regenia
8 days ago
B) document.getElementById('row-as').classList.add('priority-account');
upvoted 0 times
...
...
Iesha
2 months ago
I'm not sure, but I think A makes sense because it targets the specific row with id 'row-as'
upvoted 0 times
...
Susy
2 months ago
Hmm, I think the correct answer is A. It's a straightforward way to add the class to the specific row.
upvoted 0 times
Rosita
21 days ago
Agreed, A is the right choice.
upvoted 0 times
...
Sabine
23 days ago
Adding the class directly to the row is the way to go.
upvoted 0 times
...
Nadine
1 months ago
Yeah, using querySelector makes it easy.
upvoted 0 times
...
Caitlin
1 months ago
Yes, using querySelector to add the class is the way to go.
upvoted 0 times
...
Leslie
1 months ago
I think the correct answer is A.
upvoted 0 times
...
Alease
2 months ago
I agree, A is the correct answer.
upvoted 0 times
...
...
Providencia
2 months ago
I agree with Linn, because querySelector selects the first element with the specified selector
upvoted 0 times
...
Linn
2 months ago
I think the answer is A
upvoted 0 times
...

Save Cancel