JQuery Ready Calls Two Argument No Return Function

This is an example of calling a Javascript function that takes two arguments and returns no values. The function is called from the JQuery ready method. You need a web browser console window open to observe. Refresh page as needed.

Arguments in functions become variables inside the function and contain data passed when the function is called. The data type of the argument must match the intended data type within the function to avoid bugs such as passing text when a number is expected.

Functions that return no values are called void functions. Void functions might perform tasks with variables shared by other functions and on the Document Object Model (DOM).