JavaScript tutorial-comments |
||||||||||||||
JavaScript commentsLike other languages, comments are used to explain the code written. There are two types of comment: -// used to make comments for a single line -/* */ used to make comments for multiple lines Example:
/* This code
teaches you how to write a program that will print out the words Hello World
in JavaScript */ |
||||||||||||||
|
||||||||||||||