thats a recursive function... and its making my brain hurt looking at it. recursion is when a function calls itself usually to handle nested tasks like searches or math functions.
I think I'm stuck already. CodeAcademy seems to miss something, or I'm missing something; In the 'Functions' section talking about the Return function, it has a section saying 'Let's focus on two things we've learned, Arrays and Loops'... except I haven't covered Arrays?!! Not sure if this link will work if you're not…
Ok thanks guys, I figured out that exercise I was stuck on. Turns out arrays are covered later anyway, I get the concept though. This one's got me baffled though, I got the program running (calculates the power, returns true/false), but I can't get my head around part of it (bold part), it makes no sense. var…
Codecademy must be playing with their lesson structure right now, because I don't remember going through such tough ideas so early. Math.pow is essentially what you're creating, but what they are trying to teach you is the concept of recusion. Recusion is calling a function inside itself. I think one of the better and…
My first game was done with actionscript, done basically via a bunch of tutorials, and I honestly didn't understand much of it, but in the end I made it work the way I wanted... but a lot of brute forcing :P I then went ahead with my(limited) knowledge and have done 2 games in unity with javascript(javascript complies as…
I just wanted to emphasize this post. When starting out, the language is fairly unimportant. What you're really trying to learn are the methodologies of programming across all languages; things like Looping, Arrays, Classes and Objects. I've bounced between a few languages myself when starting out and the only hurdle is…