Which line of code should you use?

You have the following markup.

You need to rotate the div programmatically by 45 degrees.
Which line of code should you use?
A. document.getElementById("yellow").style.rotate(45);
B. document.getElementById("yellow").style.transform = "rotate(45deg)";
C. document.getElementById("yellow").style.rotate3d("45deg");
D. document.getElementById("yellow").style.rotateX(45);

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.