Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 05-bindFunctionToEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// first we need to declare a 'function' and give it a name
// The `()` are what hold the parameters of the function.
function myFunction() {
// This is called the 'Decloration'
// This is called the 'Declaration'
alert('Oh snap! A freaking box!'); // Simple alert box with text
}

Expand Down
2 changes: 1 addition & 1 deletion 06-functionWithArguments.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// first we need to declare a 'function' and give it a name
// The `()` are what hold the parameters of the function.
function myFunction(myArgument, nextArgument) {
// This is called the 'Decloration'
// This is called the 'Declaration'
document.write('Oh snap! I LOVE ' + myArgument + ' and ' + nextArgument + '</br>'); // Simple alert box with text
}

Expand Down