Follow us on Twitter!
Your life is ending one minute at a time. If you were to die tomorrow, what would you do today?
Monday, April 27, 2015
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: 13
Guests Online: 11
TeamSpeak Online : 5 Members Online: 2

Registered Members: 88083
Newest Member: grexxy
Latest Articles
Our sponsor needs your help!


One of our sponsors needs your help, http://www.virginmediabusiness.co.uk/pitch-to-rich/grow/krystal-hosting/
Go check out their video and Don't forget to vote !


~ Thanks for your help
HBH
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

Timed 2 in JS (issue with for loops)

thehare
Member



Posts: 75
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: 732
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