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 Write all code in one line Use random symbols in names Avoid indentation 2 / 5 Which JavaScript command can change the background color of a webpage element? page.color = “red” document.style.background = “red” body.setColor(“red”) element.style.backgroundColor = “red” 3 / 5 Which language is mainly used to style web pages? JavaScript SQL CSS Java 4 / 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 databases It can only create images 5 / 5 Which JavaScript property is used to change the color of an HTML element? element.text.style element.font.color element.body.color element.style.color Your score isThe average score is 20% 0% Restart quiz Send feedback