How to add JavaScript to HTML page

With Javascript, you can functionality on your webpage. You can use to validation form, file upload using AJAX, submit a form, etc.

You can add Javascript code using an external .js file or directly specify code between <script > tags on the page.

In this tutorial, I show both ways to include Javascript code on the page.

Read more

How to add comment in JavaScript

A comment is a part of the program which doesn’t execute when running the program.

Its only purpose is to be read by someone who is editing the code.

In JavaScript, there are two types of comments –

  • Single line, and
  • Multiple lines

How to add comment in JavaScript

Read more