info@enlightsolution.com           01710-318199           9:00AM - 6:00PM

  • Home
  • Services
    • Custom Software Development
    • Web Application
    • Mobile Application
  • Products
    • Enlight Business Solutions
    • Enlight Accounting
    • Enlight HR & Payroll
    • Enlight POS
    • Asset Management System
  • Portfolio
  • Insights
  • About Us
  • Career
  • Contact US

Statements in JavaScript

Statements in JavaScript

by Admin / Thursday, 30 May 2019 / Published in C#

Statement:

Most JavaScript programs contain JavaScript statements .The statements are executed, one by one in the same order as they are written. Example:

JavaScript Variable:
Variable(Binding) means anything that can vary. JavaScript includes variables which hold the data value and it can be changed anytime. Example:
Conditional Execution:

In JavaScript conditional execution is created with the if keyword. In simple case, we want some code to be executed if, and only if ,a certain condition holds.

JavaScript includes three forms of if condition:

  • if condition,
  • if else condition and
  • else if condition.

If condition:

Syntax:
Example:
if else condition:

Syntax:
Example:
else if condition:

Syntax:
Example:
While Loop:
Syntax:
Example:

Do while loop:
Syntax:

Example:
For Loop:
Syntax:

Example:

Switch:
Syntax:

Example:

About Admin

What you can read next

 Async & Await
Basic HTML & CSS
Advanced CSS

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

ENLIGHT SOLUTIONS

Enlight Solutions is working with Leading software development system. We provide out clients nice and fluent software solutions in minimum amount of time.

Quick Links

  • About Us
  • Products
  • Services
  • Portfolio
  • Blog
  • Career

All right reserved.
ENLIGHT SOLUTIONS @ 2019

  • Home
  • contact us
TOP