Introduction to JS
We also know that our window is the global object so we can write it or skip it because it is by default the global object.
Let's understand the examples below where we get the width of the screen.
Some properties and methods are described below :-
|width||returns the width of the screen|
|height||returns the height of the screen|
|availWidth||returns the available width|
|availHeight||returns the available height|
|colorDepth||returns the color depth|
|pixelDepth||returns the pixel depth.|
JS training insitute | Best IT Training classes in Gurgaon | Web Designing Training Institute