[rps-include post=6522] We have used single value variable types up to now. But the real world problems may need different solutions and variables then those. We generally define,use multiple and a lot of values. Defining one by one variable is not a practical solution for these situations. For example we want to store 5 students names in a single variable. We call these as arrays. Arrays can hold multiple values....
[rps-include post=6835] Creating variable is easy and very useful to make simple applications. If the variable count goes up managing variables becomes pain. Think that if the variables count is higher than 100 how easily can be created, assigned. There is a simpler usage for multiple variables. It is called array. An array is a variable that holds more than one value with similar types. For example we have script...
While programming we generally need to use multiple even several hundred variables of single type. Should we define one variable for each value? No. We can use arrays which can hold multiple values in a single variable. An array is string of values. So it gives the flexibility to store more than one data into single variable. An array can be defined like below.
var names=new Array("ismail","ahmet","elif");
var tag variable names is array new...