I'm trying to execute the following code in my script:
var current = x.getObj(0);
current.delete();
I realized that delete is a keyword and is being treated as an operator instead of a function so I'm getting a "missing name after . operator" error. How can I explicitly run it as a function?
x? what isgetObj?var a = { delete: function() { console.log("hi") } }in console and then usea.delete(), it works for me.