Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

window.orientation giving undefined

It works when I test it on a device which supports orientation.

Presumably your test suite does not include such a device, so the value of the
property is undefined unless explicitly set to something.

check here: https://output.jsbin.com/efuhud/1
 
PREVIOUS NEXT
Tagged: #giving #undefined
ADD COMMENT
Topic
Name
2+5 =