123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|403|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> Javascript Problem

Sat, 09 Jul 2011, 14:46
dna
The Code uses the unshift("...") command to place items first in the list.
Though it is working, a number has crept into the output from somewhere.

Why is there a number at the end of the lines in the output?



-=-=-
DNA
Sat, 09 Jul 2011, 20:22
Stealth
The unshift method returns the new length of the array. You're writing it to the window.



-=-=-
Quit posting and try Google.
Sun, 10 Jul 2011, 14:13
dna
That's got it.

The documenation should a the pertinen information about commands in one spot.

It's useul to know that the function returns a value.

-=-=-
DNA