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

How to Create a variable in PHP

A variable is used to store information and it is accessible later in the program.

It has a user-defined name.

In PHP you don’t need to specify the Datatype of a variable it automatically converts its type according to the assigned value.

There are different types of variables are available –

  1. Local variable
  2. Global variable
  3. Static variable

How to Create a variable in PHP

Read more