Closed asimaranov closed 10 months ago
Now example crushed in case if window.mina is not defined:
This is because if variable is not defined, this should be checked by typeof mina === 'undefined' not !mina: otherwise ReferenceError is raised
typeof mina === 'undefined'
!mina
ReferenceError
Now example crushed in case if window.mina is not defined:
This is because if variable is not defined, this should be checked by
typeof mina === 'undefined'
not!mina
: otherwiseReferenceError
is raised