There's no such thing as a stupid question, but they're the easiest to answer.


Software Development Software Development
Search Search
Search for:
Tech Support Guy > > >

Solved: Learning JavaScript coding, whats wrong with this code?


Ent's Avatar
Ent   (Josiah) Ent is offline Ent is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 5,368 posts.
Join Date: Apr 2009
Location: United Kingdom
Experience: Intermediate
03-Jul-2012, 04:30 AM #91
I suggest that you do a bit more research. for is a command used for loops, but you still need quite a lot.
For example, you need some way of telling the loop when to stop. Go to google and ask it about javascript For.

Also, the actual code that you want to repeat should go inside curly brackets {} after the actual for statement, just like the code you used with if.
ckphilli's Avatar
ckphilli   (Chris) ckphilli is offline
Member with 4,383 posts.
Join Date: Apr 2006
Location: Down South
Experience: Intermediate
05-Jul-2012, 08:00 AM #92
I agree wholeheartedly with Ent. Additionally, you need to actually read what they have right there in codeacademy. Something you need to understand about programming is that it's not just regurgitating code...there's some actual thought behind it. I've said this before to you and I'll say it again: slow down and actually try to learn. Else, you will constantly be backtracking because you never laid a foundation. Good luck and don't forget to have fun.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

javascript coding

Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

You Are Using: Server ID
Trusted Website Back to the Top ↑