View Single Post
  #1   Spotlight this post!  
Unread 11-08-2010, 17:38
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: javascript data type ?

sithum,
can you give more detail about what you're trying to do with the values?

I tried your example:

Code:
<html>
<body>
<script type="text/javascript">
var arr = new Array();
arr[0] = '09';
arr[1] = '15';
arr[2] = '20';
for(var i in arr)
  document.write(arr[i]+'<br/>');
</script>
</body>
</html>
which seems to render fine as
Code:
09
15
20
--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote