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. [Read more…] about What is JavaScript
JavaScript Variables
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. [Read more…] about JavaScript Variables
JavaScript Switch Statement
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: [Read more…] about JavaScript Switch Statement
JavaScript statements
A JavaScript Statement is a basic programming unit, usually representing a single step in a JavaScript program. Think of a JavaScript Statement as a sentence: Just as you string sentences together to create a paragraph (or a chapter, or a book), you combine JavaScript Statements to create a JavaScript program. For example: [Read more…] about JavaScript statements
JavaScript Popup Boxes
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. [Read more…] about JavaScript Popup Boxes
JavaScript Operators | Types of JavaScript Operators
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. [Read more…] about JavaScript Operators | Types of JavaScript Operators
JavaScript Functions
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. [Read more…] about JavaScript Functions
JavaScript If…Else Statements
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: [Read more…] about JavaScript If…Else Statements
JavaScript For Loop
A 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: [Read more…] about JavaScript For Loop
JavaScript while Loop
A 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: [Read more…] about JavaScript while Loop
JavaScript Comments
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. [Read more…] about JavaScript Comments