Jan 17, 2012

Checking for variable (Javascript vs Python)

Javascript

if (typeof q != 'undefined' || q != '' || q !== null) {  }

Python

if q: pass

No comments:

Post a Comment