javascript - in as function name gives error -
i building phonegap based android application in have created function named in when run application, on console gives below error:
syntaxerror: parse error @ file:///android_asset/www/clause.js:59
function clause() { this.in = function() {} }
you can use bracket notation set , access reserved words property names.
function clause() { this['in'] = function() {} }
Comments
Post a Comment