Having got a brief idea about Single Dimensional Array in JavaScript let us see in this section how to define and access Two Dimensional Array in JavaScript.
In this JavaScript – Part I Tutorial you will learn about Array Definition, Defining an Array in JavaScript, Shorter form, Literal Array, Accessing the elements in an array, Editing the values or elements in an array, Single Dimensional Array in JavaScript
The array concept is used to store a set of values in a single variable name. So this is a very important concept in any programming language, Let us see how to define and handle arrays in JavaScript in this session.
We saw in previous sections the String and Date Objects of Java Script. Now in this section let us see another object of Java Script mentioned earlier in our sections namely the Math Object.
We saw in previous section the String Object of Java Script. Now in this section let us see another object of Java Script mentioned earlier in our sections namely the Date Object.
As we have seen in earlier section String object is a widely used object in Java Script. Let us see in this section what the String Object is used for, how to use that in Java Script, some of the methods used in String Object in brief.
Important aspect of Java Script a programmer must be aware of is it is an Object oriented Programming language. This in other words means that it is possible to use built in objects available in Java Script and also it is possible for a Java Script programmer to define their own objects and their own variable types. Let us see in this section how to make use of built in objects available in Java Script.
As a continuation of the earlier section where we have seen alert box, we will see in section briefly about confirm box and prompt box.The confirm box is one that pops up with two buttons namely OK and Cancel. This box namely Confirm box is used to verify from the user for acceptance. If the user accepts then the user presses the Ok button and there by the confirm box returns with a value true and if the user rejects then the user presses the cancel button and there by the confirm box returns false value.
There are actually three types of popup boxes that can be created using Java Script. As per the needs of the user the programmers creates any of these types of popup box using Java Script.The three kinds of popup boxes that can be created using Java Script are namely.
In continuation of the previous section let use see the remaining conditional statements in Java Script in this section.If there are many branching r conditions to be decided based on which actions must be executed then the programmer can go for if...else if....else statement.
Just like any other programming language the conditional statements in Java Script are used for decision making purpose.If a programmer wants to execute certain statements only , when a desired condition is satisfied or have the true value then this conditional statement namely if statement can be used.