Take it line by line.
As I think about the code again (without the book in front of me):
declare the constants
declare the additional variable(s)
These are based on some form of processing...
What is the first process...? Oh yeah, ask the person how many items they wish to purchase.
How do I get the output?
Next step after that, calculate the amount of item(s) from the output by how much it is worth.
What's next after that?
Oh yeah. Is it within the budget (the constant (fixed amount declared))?
Yes/No. If it is yes, great, execute line(s) of code... if No... And so on. Line(s) by line(s), top down approach.
The course "Effective Thinking in Mathematics" has me thinking more in a way to go through the problem without any type of hints or whatnot, to really think and even write in plain english (with anything) and replace it as code. I see how this course will help me to tap further into just building from my imagination to 'clone' projects (even projects I have in mind for a while) with ease without going through reference, unless and until it is needed.
To figure out as much as you can based upon the knowledge you have thus far, and will posses as you progress further in your studies, is key.
Going back in there now to review and extract the code(s) I wrote (again) and go into the studies/practice further WITH Objects.
Within YDKJS so far I was like, "I'm familiar with everything thus far being talked about and the code is familiar, but I need to grasp the creating of Objects as well". You see in Chapter One it is talked about, but briefly. Of course it will be discussed in detail later, in other YDKJS book coming up. But I'll be ready for it when it comes as I go into Codecademy to practice the Objects part of the JS course.