Ajax
ASP
C,C++
C#,.NET
CSS,HTML
Delphi,Kylix
Experience
Flash
Java
JavaScript
PHP
Python
QT
SQL
ShellScript
VB
U :
P :
Register
Lost Password
Other Links
Code Archive
Save Giovanni
JavaScript Category Code
Real Name
:
Secure Shell
Subject
:
Display selected array elements / Dizi elemanlarından seçmece
Description
:
In this example we will create an array, and then display selected elements from it
dizi elemanlarının bir kısmını bastırıyoruz.
slice(baslangic,bitis)
var arr = new Array(3); arr[0] = "Jani"; arr[1] = "Hege"; arr[2] = "Stale"; document.write(arr + "<br />"); document.write(arr.slice(1)+"<br/>"); document.write(arr); The output of the code above will be: Jani,Hege,Stale Hege,Stale Jani,Hege,Stale
Rating
:
0.00
(out of 5)
Visitor Voting Booth
:
Excellent
Very Good
Good
Fair
Poor
Copyright © 2006 SharingCode.NET . All rights reserved. Hosted By: SisNetworks