Learning Goal #5
Students will understand, practice, and apply the basic syntax for programming interactive elements with JavaScript.
SETTING UP CONDITIONS & FUNCTIONS
Read MoreSTEP 1: CREATING A NEW FILE
Open a new Notepad document and save it as “lesson7_conditionsandfunctions.html” in your “LG5_basicjs” subfolder. You must not forget the “.html” at the end of the file name that you’re saving.
STEP 2: COPY/PASTE THE CODE
Simply copy/paste this code into your Notepad, save it (CTRL-S), and open it with Google Chrome.
STEP 3: CREATING A SPLIT SCREEN
When you reach this point, you have everything necessary to get started. Drag your code to the left/right side of your monitor and create a split screen so that you can see the design on the other side. The teacher will know you are done when your screen shows the code on one side and the design on the other. Once the teacher sees that you and your partners/teams are all set up, you will probably be asked to stand up and help someone else out.
CONDITIONS or FUNCTIONS until
EVERY student has completed Steps 1-4.