144k views
5 votes
Complete the JavaScript code to set the paragraph's inline style to use the Courier font family and remove the paragraph's text transform property.

Complete the JavaScript code to set the paragraph's inline style to use the Courier-example-1
Complete the JavaScript code to set the paragraph's inline style to use the Courier-example-1
Complete the JavaScript code to set the paragraph's inline style to use the Courier-example-2

1 Answer

1 vote

Answer:

Answer attached as an image.

Step-by-step explanation:

This is quite self-explanatory. In the code, we first select the paragraph element with the querySelector method and store it in the helloElem variable. Then, we set the fontFamily property of the style object of the helloElem element to "Courier", which will change the font family of the paragraph text to Courier. Finally, we set the textTransform property of the style object to an empty string, which will remove any text transformation applied to the paragraph text.

Complete the JavaScript code to set the paragraph's inline style to use the Courier-example-1
User JonathanN
by
8.3k points