Comments in JavaScript part 2

Multiple-Line Comments



Everything you write between /*and */ will be considered as a multi-line comment.

Here is an example.
<script>
/* This code
creates an
alert box */
alert("This is an alert box!");
</script>
Try It Yourself

Comments are used to describe and explain what the code is doing.
Create a multi-line comment in JavaScript.

 
 
 this is a
   multiline
 // comment 
 
 ans

Comments

Popular posts from this blog

Introducing object part 3

Comparison Operators part 2

Module 2