Java & JavaScript Styles Quiz Test Your Java & JavaScript Skills: Beginner’s Quiz 1 / 5 4. Which of the following is a good Java coding style practice? Use clear variable names Use random symbols in names Avoid indentation Write all code in one line 2 / 5 Which JavaScript command can change the background color of a webpage element? element.style.backgroundColor = “red” page.color = “red” document.style.background = “red” body.setColor(“red”) 3 / 5 Which language is mainly used to style web pages? Java CSS JavaScript SQL 4 / 5 Which JavaScript property is used to change the color of an HTML element? element.font.color element.style.color element.body.color element.text.style 5 / 5 What does JavaScript often do with styles on a webpage? It can change styles dynamically It can only compile Java code It can only create images It can only create databases Your score isThe average score is 20% 0% Restart quiz Send feedback