I wanted to start using strict mode for my bot but then tested to see if works (Tried to delete a local variable) But realized it throws the same error activating or not the strict mode
let test
delete test //Syntax Error: Tried to delete local variable in strict mode
the delete keyword in javascript was created to delete properties of an object and should not be used to attempt to delete variables as variables will either way dissolve when they are no longer used. You can use the delete keyword on objects such as sets, maps or normal objects.
I know right? Did you guys read the post? I know delete throws the error but in non strict JS the silent error is minimized and won’t stop the code, you can check if some code is strict by doing that…
Can you answer or I’ll just deduct glitch works automatically in strict JS?