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