8154bd75-ec3f-4602-aef9-b64e6726ec31-image.png 3e28a18c-6545-4800-904a-d2c751dc1a32-image.png
It can be loaded via chrome://extensions/, but the folder cannot be selected when Load unpacked is said.
Main/Tools/Execute code - how it actually works?
I see it works sometimes with very easy javascript logic, but it failed to do filter/push etc, works fine with devtools, but failed to understand what type of javascript works here always.
const str = [120, 121];
const match = [];
for (let i = 0; i < str.length; i++) {
if (str[i] === 120 || str[i] === 121) {
match.push(str[i]);
}
}
log(match); // Output: [120, 121]
SyntaxError: Parse error during execution of action
any guideline will be better?
Thanks
@nabil said in Execute Code module - how it works?:
Main/Tools/Execute code - how it actually works?
I see it works sometimes with very easy javascript logic, but it failed to do filter/push etc, works fine with devtools, but failed to understand what type of javascript works here always.
const str = [120, 121]; const match = []; for (let i = 0; i < str.length; i++) { if (str[i] === 120 || str[i] === 121) { match.push(str[i]); } } log(match); // Output: [120, 121] SyntaxError: Parse error during execution of actionany guideline will be better?
Thanks
Don't use "let". The BAS uses an implementation that supports the ECMA-262 standard.