exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 88 discussion

Actual exam question from Microsoft's 70-480
Question #: 88
Topic #: 4
[All 70-480 Questions]

DRAG DROP -
You have the following markup:

You need to add a dashed border programmatically to the div.
You write the following code.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets in the answer area. Each code can be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
https://www.w3schools.com/jsref/prop_style_border.asp

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MJKWandile
Highly Voted 5 years, 7 months ago
document.getElementById("yellowdiv").className+=" border"; " border" with space so that it adds a space between existing class and the the one being added.
upvoted 27 times
Razmataz
5 years, 3 months ago
.getElementByClassName instead
upvoted 1 times
Razmataz
5 years, 3 months ago
Actually my bad you're right
upvoted 1 times
...
KyryIx
5 years, 3 months ago
https://developer.mozilla.org/pt-BR/docs/Web/API/Document/getElementsByClassName document.getElementsByClassName("yellow")[0].className+=" border";
upvoted 3 times
...
...
...
beznika
Highly Voted 5 years ago
document.getElementById('yellowDiv').className +=" border"; is the correct answer.
upvoted 7 times
Kebo
4 years, 11 months ago
you are right
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...