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

Smartphone icons created by Freepik - Flaticon

JavaScript Numbers

A number divided by a non-numeric string becomes NaN (Not a Number):

document.getElementById("demo").innerHTML = 100 / "Apple";

JavaScript will try to convert strings to numbers in all numeric operations like * (multiply), / (divide) and − (minus). JavaScript uses the + operator to concatenate the strings.