I'm trying following simple JavaScript code:
On my Samsung A5(2017) smartphone. The specs for my device screen is `1080 x 1920` pixels while the alert reports me only `360` as `screen.width` value. My question is why there is such discrepancy between the vale of specs and the valeu returned by the code?Code:alert(screen.width);