@Grassman Π― Π½Π΅ Π·Π½Π°Ρ Π³Π΄Π΅ ΠΊΡΠΏΠΈΡΡ ΠΏΡΠΎΠΊΡΠΈ Ρ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΊΠΎΠΉ UDP.
Π’Π°ΠΌ Π³Π΄Π΅ ΡΡΠΎ Π½Π΅ΠΎΠ±Ρ
ΠΎΠ΄ΠΈΠΌΠΎ Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡ ΡΠ²ΠΎΠΈ ΠΏΡΠΎΠΊΡΠΈ, ΡΠ°ΠΌ Π³Π΄Π΅ ΡΡΠΎ Π½Π΅ ΠΈΠΌΠ΅Π΅Ρ Π·Π½Π°ΡΠ΅Π½ΠΈΡ - Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡ ΠΊΡΠΏΠ»Π΅Π½Π½ΡΠ΅ ΠΏΡΠΎΠΊΡΠΈ.
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
-
@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.