Follow us on Twitter!
I'd prefer to die standing, than to live on my knees - Che Guevara
Wednesday, April 23, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 28
Guests Online: 22
Members Online: 6

Registered Members: 82885
Newest Member: ConiBE
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

Timed 2 in JS (issue with for loops)

thehare
Member



Posts: 73
Location: Canada
Joined: 01.05.08
Rank:
God
Posted on 09-08-13 05:12
Hey guys, just trying my hand at the timed challenges using JS (via greasemonkey). I was never very proficient at JS so I thought what better way to learn it than doing some of these challenges -and thankfully there's even an entire article here written on the subject.

Well it seems I overlooked one part in my code, and that is I cant pull any variable values from my 'for' loops after they are completed (kind of forgot about that as I was figuring out the code lol).

Was just wondering if I could show someone what I have so they could nudge me in the right direction


If you need help, dont be afraid to ask, just be sure to give the challenge an honest try before you do.



Edited by thehare on 09-08-13 05:13
Author

RE: Timed 2 in JS (issue with for loops)

Futility
Member



Posts: 725
Location: USA
Joined: 17.12.07
Rank:
God
Posted on 09-08-13 11:44
Not a master JSer, but I can take a look.

Off the top of my head, it sounds like you've got some scoping issues. Try declaring the variables outside the loop and ( re )setting them as necessary while inside. That always seems to work


i252.photobucket.com/albums/hh11/zanimabean/Zim.png
Futility91@hotmail.com Futility91