A looping statement is used to execute and repeat a block of statements depending on the condition.
There are the following types of loops in JavaScript –
- while
- do-while
- for
A looping statement is used to execute and repeat a block of statements depending on the condition.
There are the following types of loops in JavaScript –
With Javascript, you can functionality on your webpage. You can use it to validate 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.
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 –
All programming languages have decision-making statements that allow controlling the flow of the program.
You can define what code to be executed when the condition is TRUE
and when it’s FALSE
.
In this tutorial, I show various types of the conditional statements in PHP.
© 2016-2023 Makitweb, All rights reserved