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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -