You are creating a web page that contains a canvas with text.
The page contains the following JavaScript code. Line numbers are included for reference only.
The text on the canvas must rotate 90 degrees when a user clicks a button on the page.
You need to ensure that the text rotates when the user clicks the button.Which line of code should you add at line 02?

A.
canvas.style.transform = “rotation(90deg)”;
B.
canvas.transform(90);
C.
canvas.content.rotate(90);
D.
canvas.style.transform = “rotate(90deg)”;
Explanation:
https://www.w3schools.com/jsref/prop_style_transform.asp
Here’s the newest dump with the latest questions from September 2017:
http://optifiles.com/ProgrammingInHTML
0
1
D (I test it)
0
0
Example : https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_transform
0
0