Deal of The Day! 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 3 Question 88 Discussion

Actual exam question for Salesforce's Javascript Developer I exam
Question #: 88
Topic #: 3
[All Javascript Developer I Questions]

Given HTML below:

UniversalContainer

Applied Shipping

Burlington Textiles

Which statement adds the priority = account CSS class to the universal Containers row ?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Salena
9 days ago
I almost got tripped up by option A, but then I realized that the classes property is not a method, so you can't use push() on it. These questions really make you think!
upvoted 0 times
...
Yoko
10 days ago
Ha! Option D is just plain silly. You can't use querySelectorAll() to add a class to a single element. I'm glad I didn't fall for that one.
upvoted 0 times
...
Sage
11 days ago
Wow, these questions are getting trickier. I almost went with option B, but then I remembered that it's getElementById, not queryElementById.
upvoted 0 times
...
Jacqueline
15 days ago
Option C is the correct answer. The querySelector() method selects the first element that matches the specified CSS selector, and the classList.add() method adds the specified CSS class to the element.
upvoted 0 times
...
Dino
1 months ago
I'm not sure, but I think D is incorrect because querySelectorAll returns a NodeList, not a single element.
upvoted 0 times
...
Leonard
1 months ago
I agree with Margarita. C seems like the correct option based on the syntax.
upvoted 0 times
...
Margarita
2 months ago
I think the answer is C because classList.add is used to add a class to an element.
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
a