logo

NJP

script: how to comment functions?

Import · Dec 26, 2019 · article

script: how to comment functions?

To create a single line comment in JavaScript:

// This is a single line JavaScript comment

AND

To create a multiple line comment in JavaScript

/*

This is a multiple line comment

You can write so many lines as you need
*/

image

Summary

Tizag documentation

w3schools

JavaPoint

DigitalOcean

Introduction to javascript course

View original source

https://www.servicenow.com/community/developer-articles/script-how-to-comment-functions/ta-p/2324055