Let's invoke some functions! Complete the following tasks in your console.
A JavaScript function is a block of code designed to perform a particular task. A JavaScript function is executed when "something" invokes it (calls it). -W3Schools
Date()
function to show today's date.alert()
function with a parameter - a string that will be your alert message.alert
to view the function itself in console.
alert("This is an alert!");
.callThisFunction()
function with a parameter - your name (i.e. "Derek").
alert()
and Date()
are global functions provided by JavaScript.