The
device
object describes the device's hardware and software.
Since device
is assigned to the window
object, it is implicitly in the global scope.
// These reference the same `device` // var phoneName = window.device.name; var phoneName = device.name;