You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Rhino 1.7.12 2020 01 13 under windows 10 and these flags "-version 200 -strict -f set.js"
My Code
const fruits = new Set(['Apple','Mango']);
fruits.delete(0);
print(fruits);
result is
js: "set.js", line 3: missing name after . operator
js: fruits.delete(0);
js: .............^
js: "set.js", line 1: Compilation produced 1 syntax errors.
I solve with
const fruits = new Set(['Apple','Mango']);
fruits["delete"](0);
print(fruits);
bu why first example doesn't work ?
The text was updated successfully, but these errors were encountered:
I use Rhino 1.7.12 2020 01 13 under windows 10 and these flags "-version 200 -strict -f set.js"
My Code
result is
js: "set.js", line 3: missing name after . operator
js: fruits.delete(0);
js: .............^
js: "set.js", line 1: Compilation produced 1 syntax errors.
I solve with
bu why first example doesn't work ?
The text was updated successfully, but these errors were encountered: