View Single Post
Old 12-26-2008, 04:47 PM   #1 (permalink)
davidnvn
Cloud's Hair Spray
 
Join Date: Dec 2008
Location: At home, stalker
Posts: 66
Reputation: 11
Default Java script question

Im trying to do this problem to find the largest palindrome made by multiplying two 3-digit numbers

Link: http://projecteuler.net/index.php?section=problems&id=4

Anyhoo, can some one tell me what's wrong with this line:

pal2=pal1.charAt(5)+pal1.charAt(4)+pal1.charAt(3)+ pal1.charAt(2)+pal1.charAt(1)+pal1.charAt(0)

im getting an incompatible types error....

Last edited by davidnvn; 12-26-2008 at 05:28 PM.
davidnvn is offline