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 Which symbols are used for multi-line comments in Java and JavaScript? ““ ** ## // 3 / 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 ** 4 / 5 What happens to comments when the program runs? They create errors They are ignored by the compiler/interpreter They change the output automatically They are executed as code 5 / 5 Why are comments used in Java and JavaScript? To change output color To explain the code To create variables To run code faster Your score isThe average score is 0% 0% Restart quiz Send feedback