- Define a variable
name
of typeString
usingvar
orlet
- Define a constant
TIMEOUT
with a value of1000
- Create a
user
object with the following propertiesfirstName
->String
lastName
->String
age
->Number
fullName
->function
that returns the join (concatenation) offirstName
andlastName
- Create an
array
that has the names of your family members console.log
every item in the family members array (from above) using afor
loop- Iterate over the family members array (from above) using the
forEach
method onarray
. - Iterate over the family members array (from above) using the
map
method onarray
. The return value frommap
must be the capital cased version of each of the items in the array. - Write a function
isAllowedToEnter
that 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
HTML
document. - Create a square of size
50
. This square must have a background colour ofpapayawhip
with aborder-radius
of5
- Extra credit
- Change the background colour of the square (from above) using jQuery, when the mouse enters the square.
- Create a
button
with textClick Me
. Use plain JavaScript toconsole.log
the valueI have been clicked
when 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