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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -