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

Given HTML below:

<div>

<div id =”row-uc”> Universal Container</div>

<div id =”row-aa”>Applied Shipping</div>

<div id =”row-bt”> Burlington Textiles </div>

</div>

Which statement adds the priority = account CSS class to the universal COntainers row?
A . Document .querySelector(‘#row-uc’).classes.push(‘priority-account’);
B . Document .queryElementById(‘row-uc’).addclass(‘priority-account’);
C . Document .querySelector(‘#row-uc’).classList.add(‘priority-account’);
D . Document .querySelectorALL(‘#row-uc’).classList.add(‘priority-account’);

Answer: B

Subscribe
Notify of
guest
2 Comments
Inline Feedbacks
View all comments
ultraInstinct
ultraInstinct
3 years ago

C is the answer

Madhavi Bhattad
Madhavi Bhattad
3 years ago

C. => Document .querySelector(‘#row-uc’).classList.add(‘priority-account’);