Skills Test
Rules: Do not talk to others, You can refer to notes and old programs
Score one point for each activity you complete
Setup:
Create an HTML document that has 9 different buttons on it.
Each button should link to a function that does one of the tasks
Task 1: Hi
when clicked says "hi"
Task 2: Insult or compliment
asks for the users name, then insults then or compliments them
Task 3: Math
asks for a number then tells the user what that number would be if you added 100 or took away 12
Task 4: Smelly Socks
Asks if your socks are smelly, if you enter yes it will tell you to wash them, if no it will doubt you.
Task 5: Answers
Using one if statement ask the user what one of the primary colours are. they should be able to get it correct answering "red" or "yellow" or "blue"
Task 6: Arrays
Create an array with your top 5 video games. Alert them in order 1 3 5 2 4
Task 7: For Loops
Create an array of movies you like in order, alert each movie in reverse order (using a for loop)
Task 8: Keep singing
using a while loop keep singing the song that never ends. Ask them if they would like to stop. if they do stop the loop
Task 9: Functions
Create a function that calls a function that calls a function that says "hi"
Score one point for each activity you complete
Setup:
Create an HTML document that has 9 different buttons on it.
Each button should link to a function that does one of the tasks
Task 1: Hi
when clicked says "hi"
Task 2: Insult or compliment
asks for the users name, then insults then or compliments them
Task 3: Math
asks for a number then tells the user what that number would be if you added 100 or took away 12
Task 4: Smelly Socks
Asks if your socks are smelly, if you enter yes it will tell you to wash them, if no it will doubt you.
Task 5: Answers
Using one if statement ask the user what one of the primary colours are. they should be able to get it correct answering "red" or "yellow" or "blue"
Task 6: Arrays
Create an array with your top 5 video games. Alert them in order 1 3 5 2 4
Task 7: For Loops
Create an array of movies you like in order, alert each movie in reverse order (using a for loop)
Task 8: Keep singing
using a while loop keep singing the song that never ends. Ask them if they would like to stop. if they do stop the loop
Task 9: Functions
Create a function that calls a function that calls a function that says "hi"