Guest, register

Training Lexical Structure and Statements This free HTML JavaScript tutorial provides some basic JavaScript concepts for programming newbies. In this post, you will train some categories of JavaScript statements, JavaScript blocks and Group of JavaScript statements, some tips on declaring a JavaScript Statement.

Free iPage Web Hosting for First Year NOW

If you're still looking for a reliable web host provider with affordable rates, why you don't take a little of time to try iPage, only with $1.89/month, included $500+ Free Extra Credits for the payment of 24 months ($45)?

Over 1,000,000+ existisng customers can not be wrong, definitely you're not, too! More important, when you register the web hosting at iPage through our link, we're going to be happy for resending a full refund to you. That's awesome! You should try iPage web hosting for FREE now! And contact us for anything you need to know about iPage.
Try iPage for FREE First Year NOW

x = x + 1;  y = 20;  z = x+y;

As the semicolon is optional, we can represent above statements separated with a line-break.

x = x + 1
y = 20
z = x+y

Categories of JavaScript Statements

Depending on the task a statement perform, they are categories as:

  • Conditional Statements
  • Loop Statements
  • Object Manipulation Statements
  • Comment Statements
  • Exception Handling Statements

JavaScript Blocks - Group of JavaScript Statements

JavaScript statements can be grouped together in blocks. Curly braces ({ }) are used to group a list of statements together in blocks. JavaScript block helps to execute sequence of statements together to perform a specific task. JavaScript block are the integral part of the function and conditional loops.

<script type="text/javascript">
for (x=0; x < 10; x++)
  document.write("x="+ x +"<br>");

Some Tips on declaring a JavaScript Statement

  • JavaScript programs are written using the Unicode character set.
  • JavaScript is a case-sensitive language so take care while defining and using variables, function names.
  • Do not use reserved keywords as variables, function names.
  • JavaScript ignores spaces, tabs, and newlines that appear between tokens in programs so indent your programs as per your consistency.
  • Omitting semicolons is not a good programming practice; you should get in the habit of using them.
Save up to 630$ when buy new iPhone 15
Free Airdrops to Claim, Share Up to $150,000 per Project
Open tool hub for free to use by any one for every one with hundreds of tools,,,
Talk to ChatGPT by your mother language
Generate creative images automatically with AI
Render creative video automatically with AI

JavaScript by day

Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web