This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.



Smartphone icons created by Freepik - Flaticon

JS Functions

After a function has been stored in a variable, the variable can be used as a function:

const x = function (a, b) {return a * b};
document.getElementById("demo").innerHTML = x(4, 3);