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