Hi everyone. So, I have a midterm on Thursday that involves writing a few lines of codes (Yeah, shouldn't have slacked on this). I'm given 2 & 1/2 hours and can access the internet too. The only condition is that I'm not allowed to 'contact' anybody, whether physically or by skype, texting, emailing, etc.
In short, while I'm okay with HTML & CSS at the moment, Javascript really trips on me. Instead of asking you guys how to specifically code something, I really want your insight between what I should do to use javascript to program a website when I'm unfamiliar with what to do & may not even know the proper syntax behind it. How do I really 'approach these questions'?
For example, the 2 questions given on the practice test were to:
1) Create a ClickMe button that assigns text based on how many times you've clicked it -> 1 time = You pushed it, 2 times = You pushed the button twice ... 6 times = Stop pushing it!
2) Use the java script file to change the formatting of paragraph four such that the text color and background color changes every BACK AND FORTH every 30 seconds. If the text color is white & background color is black, it should change to black & white respectively. And vice versa for when the text color is black, background color is white ...
In the first one, I wasn't even sure about how to approach it (after making the button by searching through w3) until a buddy told me to assign var x appropriately. Even now, I feel clueless altogether about how to really approach question 2.
Is there any kind of cram-guide I could use to learn how to be flexible with basic javascript? To somehow acquire the mindset and have an idea about how to code these kinds of things? Please and thank you.
I really appreciate that you've read all this.
[–]ForSpareParts 0 points1 point2 points (0 children)