Syntax
for(variable inwards array_or_object)
{
statements;
}
Example
var ar=[2,4,5,2,7,48,234];
for(i inwards ar)
{
alert(ar[i]);
}
Example Program:- (Editor)
Editor is Loading...
Advertisement
Tags:
for loop inwards allinworld99, for...in using javascript inwards allinworld99, allinworld99 to read array value.
Tidak ada komentar:
Posting Komentar