.value.trim()
.value.trim().length
if (myForm["userName"].value.trim().length === 0){ ... } // or if(myForm["userName"].value.trim() === "")
isNaN(Number(...))
if (isNaN(Number(myForm["age"].value)))
true
false
ex17-1.html
textarea
checkbox
ex17-converter.html
source: How Remote Pair Programming Works & Why it Can Change Your Life