by Dinesh Thakur Category: JavaScript Tutorial

An JavaScript Operators, as the name suggest, performs some action. JavaScript Programming languages would be virtually useless if they did not provide the programmer with JavaScript Operators to use. An JavaScript Operators is a symbol or word that performs some sort of calculation, comparison, or assignment on one or more values. In some cases, an JavaScript Operators provides a shortcut to shorten the code so that you have less to type.

 
by Dinesh Thakur Category: JavaScript Tutorial

What is a function? A JavaScript Functions is really just an encapsulated bunch of code. We’ve been looking at a bunch of JavaScript syntax: all of that can go inside JavaScript Functions and often that’s what you’ll do. When you put code inside a JavaScript Functions it isn’t run right away, like “loose” code. You decide when the code runs by calling the function, and you can do that as often as you want to. This is part of the benefit of JavaScript Functions. 

 
by Dinesh Thakur Category: JavaScript Tutorial

JavaScript If Else: Conditional statements are also called “if/then” statements, because they perform a task only if the answer to a question is true: “If I have enough money then I’ll go to the movies.” The basic script of a JavaScript If Else looks like this:

 
by Dinesh Thakur Category: JavaScript Tutorial

JavaScript For Loop is a block of code that allows you to repeat a section of script a certain number of times; perhaps changing certain variable values each time the code is executed. JavaScript features two basic loop types:

 
by Dinesh Thakur Category: JavaScript Tutorial

JavaScript While Loop just looks at a short comparison and repeats until the comparison is no longer true. To begin, take a look at the general syntax for Script the first line of a While Loop: 

 
by Dinesh Thakur Category: JavaScript Tutorial

JavaScript Comments or ( JS Comments ) are very useful and practical when developing code. It is possible to comment out a specific line or a block of code with JavaScript Comments.

 

Page 2 of 2



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.