ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 100 - Certified JavaScript Developer I discussion

Report
Export

Refer to HTML below:

<div id ="main">

<div id = " card-00">This card is smaller.</div>

<div id = "card-01">The width and height of this card is determined by its contents.</div>

</div> Which expression outputs the screen width of the element with the ID card-01?

A.
document.getElementById(' card-01 ').getBoundingClientRest().width
Answers
A.
document.getElementById(' card-01 ').getBoundingClientRest().width
B.
document.getElementById(' card-01 ').style.width
Answers
B.
document.getElementById(' card-01 ').style.width
C.
document.getElementById(' card-01 ').width
Answers
C.
document.getElementById(' card-01 ').width
D.
document.getElementById(' card-01 ').innerHTML.lenght*e
Answers
D.
document.getElementById(' card-01 ').innerHTML.lenght*e
Suggested answer: A
asked 23/09/2024
Gerald Saraci
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first