JavaScript Window screen.pixelDepth
JavaScript Window screen.pixelDepth
The pixelDepth property is used to return the screen color depth. It returns depth in bits per pixel. It is a read-only property. The pixelDepth and colorDepth properties return the same value but colorDepth property is preferred.
Syntax:-
Its syntax is:- screen.pixelDepth
Return:-
Its return is:- depth of screen color in numbers like 2, 4, 16, etc.