dimanche 15 février 2015

Why jshint alerts Read only on lastSelectedRow


Code below pasted to jshint.com site causes error


Read only


at line


lastSelectedRow = 1;


Why this error occurs and how to fix it? jslint does not thow this error.



/*global lastSelectedRow */
function main() {
lastSelectedRow = 1;
return 'Hello, World!';
}

main();




Aucun commentaire:

Enregistrer un commentaire