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