Read the docs in the language you think in. Start typing in any script.
English: checkHost · stdlib · javascript
checkHost
Official documentation — MDN reference