For the following html element, which is the correct method to change the font size to 25px using javascript?
< p id = "foo">Lorem Ipsum</ p >
Correct Answer: document.getElementById("foo").style.fontSize = "25px";
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions