I’ve found this piece in a script
var name = project.SMALL_WIDTH//p.containerWidth() /// 2//project.WIDTH / 4
What do the double and the triple slash mean?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
///is (most likely) there only to divide up parts of the comment. But, they don’t have any affect in the code. Everything after a//in a JavaScript code is not rendered by the browser. You could do this and it would still work:Also, you can do multiple line comments:
As you can see, multiple line comments in JavaScript are very similar to CSS comments.