Author: Yogesh Singh

Looping statement is use to execute and repeat a block of statements depending on the condition. In Javascript, we have the following looping statements –  while do while for while…

Read More Loops in Javascript

Javascript

When we adding Javascript code to HTML page then it must be in between <script> and </script> tags. We can place Javascript in <body> and <head> section of an HTML…

Read More Embedding Javascript In HTML

Javascript

A comment in Javascript code is a line that is not read/executed as part of the program. Its only purpose is to be read by someone who is editing the code.…

Read More Comments in Javascript

Javascript

PHP

PHP

We can easily embed a PHP script within HTML file, by using PHP tag. It is very useful when you are creating a dynamic application, where you are generating data…

Read More Embedding PHP in HTML

PHP

Variables are “containers” for storing information, which have a user-defined name. Using variables we can store some information and use later within the program. In PHP we don’t need to…

Read More Creating variables in PHP

PHP

A comment in PHP code is a line that is not read/executed as part of the program. Its only purpose is to be read by someone who is editing the…

Read More Comments in PHP

PHP