# Functions!

# 5 Parts of a function

We will create a function called write that logs out "Hello I am writing!"

  1. The function keyword
function
  1. The name of your function (You can name it anything you want) - Don't forget your hugs! ()
function write()

TIP

functions are actions. Think of verbs when naming your functions

  1. parameter
  • One or more things your function expects to be given.
function write(pencil)

TIP

Parameters are just variables. Remember with variables - think of them like nouns

  1. curly braces
  • Curly braces determine when the action starts and stops.The action goes in between. {}
function write(pencil){
  // ACTION GOES IN HERE
}

# Data Types