Java & JavaScript Comments Quiz Test Your Java & JavaScript Skills: Beginner’s Quiz 1 / 5 Which symbol is used for a single-line comment in Java and JavaScript? // ““ ## ** 2 / 5 Why are comments used in Java and JavaScript? To explain the code To create variables To change output color To run code faster 3 / 5 What happens to comments when the program runs? They are ignored by the compiler/interpreter They are executed as code They create errors They change the output automatically 4 / 5 Which symbols are used for multi-line comments in Java and JavaScript? ** // ## ““ 5 / 5 Which of the following is a correct single-line comment in JavaScript? // This is a comment ** This is a comment ** ## This is a comment Your score isThe average score is 0% 0% Restart quiz Send feedback