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?
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:
<script type="text/javascript">
// Hello! I'm a comment! ///////////////// these slashes don't do anything as they're in a comment.
// The double slashes tell the browser not to render it.
</script>
Also, you can do multiple line comments:
<script type="text/javascript">
/*
This is a
multiple
line
comment!
*/
</script>
As you can see, multiple line comments in JavaScript are very similar to CSS comments.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With