This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
If y is not passed or undefined, then y = 10:
function myFunction(x, y = 10) { return x + y; } document.getElementById("demo").innerHTML = myFunction(5);