Analyze the code snippet:
let counter = 0; let userName = "John";
After declaring the counter
variable, we want to add a short comment with information about what the variable is used for. To do this, we modify the line with the declaration to the form:
let counter = 0; // user visit counter
let counter = 0; /* user visit counter
let counter = 0; ;;user visit counter
// let counter = 0; user visit counter
More Questions: JavaScript Essentials 1 – JSE1: Final Test
Please login or Register to submit your answer