sg

Cumartesi, Ocak 07, 2006

Re: spltting an array (not a string)


Wes Groleau wrote:

> (or almost)? For example, an array containing the English alphabet
> would become
>
> start = a, b, ..., m
> end = n, o, ..., z
>
> or one containing the vowels would become
>
> start = a, e, i
> end = o, u
>

If your array is really just a bunch of STATIC single characters, you
might consider a string instead. The "charAt()" method will substitute
for your array index. Once you become comfortable with JS, you will
discover regular expressions can eliminate many lines of equivalent
code with a huge improvement in performance.

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık