"Read only" error occurs when attempting to assign a value to a built-in native object or a global variable in your code. JSHint flags this error because lastSelectedRow is identified as a global variable in the comments, indicating a potential risk of data loss.
While this error does not necessarily mean that your code will malfunction, it could potentially disrupt third-party scripts.
For more information, you can visit .
Based on the provided code snippet, it's unclear how the variable is meant to be used. To address this issue, consider renaming the variable within the function scope and refrain from re-assigning values to global variables.
/*global lastSelectedRow */
function main() {
var aa = lastSelectedRow;
return aa.toString() + 'Hello, World!';
}
main();