Named and Anonymous Functions
Arrow Functions
Self Involking Functions
Each type have specific use cases
<!DOCTYPE html>
<html>
<head>
<title>Working with named Functions</title>
</head>
<body>
<div > Click Me </div>
</body>
</html>
Apply the following bullet points to the HTML code above.
A way of organizing your code to focus on real world nouns (Person, place, thing or idea)
Creating a simple model of a more complex thing, which represents its most important aspects in a way that is easy to work with for our program's purposes
var person = {
name: "Parker Walker",
age: 29,
gender: "male",
interest: "everything",
bio: function(){
console.log( this.name + " is " + this.age + "years old.
They like " + this.interest);
},
greeting: function() {
console.log("Hi! I'm " + this.name);
}
}