Example 1 — Read the Value
Log navigator.maxTouchPoints and confirm it is a number.
console.log(navigator.maxTouchPoints);
console.log("type: " + typeof navigator.maxTouchPoints); How It Works
- Read the property. No arguments — just access Navigator.
- Expect a number.
typeofshould be"number". - Accept device variance. Desktops often show
0; phones often show5. - Do not write to it. Assigning a new value does not change hardware.

