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

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 Popup Box: JavaScript provides the ability to create small windows called JavaScript Popup Box. You can create alert boxes, confirm boxes, and even prompt boxes. These boxes let you generate output and receive input from the user.

 
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.

 
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 is an easy-to-use object-oriented script language designed for creating dynamic web page of website that link resources on both clients and servers. Netscape's JavaScript called as the glue that holds website Web page together. This means that JavaScript will work on any platform (Windows, Linux, Mac, etc.). You don’t need any special tools to use. You can write program text editor.

 
by Dinesh Thakur Category: JavaScript Tutorial

JavaScript Switch Statement allows you to take a single variable value and execute a different block of code based on the value of the variable. If you wish to check for a number of different values, this can be an easier method than the use of a set of nested if/else statements. The first line of a JavaScript Switch Statement would have the following syntax:

 
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

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 Variables: Every computer language provides some kind of support for variables. In JavaScript, programmers use the var statement to create a new Javascript variable. When you create a JavaScript variable, you need to give it a name. This is just like putting labels on the food containers in your refrigerator. When you look at the label, you can see what is inside without having to open the container.



 

Page 1 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.