JavaScript Comment:
Sometimes we need to hide some text in a program, at that situation we should put all those codes within comments. Line of Comments generally use for putting important information of variables, functions and other. This is useful when you are working in a group, and other team member may need to use your coding, it is also useful if you are working alone, comments keep you remembering about each details of the program.
Example 1:
<html>
<head>
<title>My Firt JavaScript File </title>
<script type="text/javascript" >
//This is single line comment
document.write("It is not comment");
/*
This
is
multi
line
comment
*/
</script>
</head>
<body>
</body>
</html>
Output:
It is not comment
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.