Java & JavaScript Attributes Quiz Test Your Java & JavaScript Skills: Beginner’s Quiz 1 / 5 Which keyword can be used to declare a variable in JavaScript? className print var public 2 / 5 Which of the following is a feature of Java? Used only for images Used only for styling Works only in browsers Platform independent 3 / 5 Which of the following is a feature of JavaScript? It is mainly used to add interactivity to web pages It is only used for database design It is a CSS property It is an image format 4 / 5 Which of the following is a common property of both Java and JavaScript? Both are web browsers Both are only used for CSS Both are HTML tags Both are programming languages 5 / 5 Which keyword is used to declare a variable in Java? style var let int Your score isThe average score is 0% 0% Restart quiz Send feedback