- Define a variable
nameof typeStringusingvarorlet - Define a constant
TIMEOUTwith a value of1000 - Create a
userobject with the following propertiesfirstName->StringlastName->Stringage->NumberfullName->functionthat returns the join (concatenation) offirstNameandlastName
- Create an
arraythat has the names of your family members console.logevery item in the family members array (from above) using aforloop- Iterate over the family members array (from above) using the
forEachmethod onarray. - Iterate over the family members array (from above) using the
mapmethod onarray. The return value frommapmust be the capital cased version of each of the items in the array. - Write a function
isAllowedToEnterthat takes as it’s only parameter, age, which is aNumber. If the age provided is greater than or equal to 18, it must returntrue, otherwise it must returnfalse. - Write the basic structure of a
HTMLdocument. - Create a square of size
50. This square must have a background colour ofpapayawhipwith aborder-radiusof5 - Extra credit
- Change the background colour of the square (from above) using jQuery, when the mouse enters the square.
- Create a
buttonwith textClick Me. Use plain JavaScript toconsole.logthe valueI have been clickedwhen the button is pressed.
Created
August 22, 2018 08:33
-
-
Save vjrngn/d02fc197e84524ddc5124f5ceb136266 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment