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

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -