Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript

วิธีใช้ multi-line comments ใน JavaScript


ต่อไปนี้คือ multi line comment ใน JavaScript

/*  
    * This is a multiline comment in JavaScript 
    * It is very similar to comments in C Programming 
*/

ตัวอย่าง

ตัวอย่างต่อไปนี้แสดงวิธีใช้ multi-line comments ใน JavaScript

<script> 
    <!-- 
        /* 
            * This is a multiline comment in JavaScript 
            * It is very similar to comments in C Programming 
        */ 
    //--> 
</script>