call functions javascript code example Example: how to call a function in JavaScript // calling our function displayGreeting();