Getting device display information in Web app

This code shows how to get display information like display resolution, dots per Inch, brightness etc of device using Tizen Web API.