Gabriel ← Customer Feedback for 3T Software Labs GmbH My feedback 1 result found redeclaration of const 3 votes Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close Vote We’ll send you updates on this idea 1 comment · Share your ideas with us · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close An error occurred while saving the comment Gabriel commented · April 22, 2020 · Edit… · Delete… It's really weird to have the same context the second time you run a script, but you can use an IIFE (Immediately Invoked Function Expression) (function () { // your code })(); Save Submitting... Gabriel supported this idea · April 22, 2020
It's really weird to have the same context the second time you run a script, but you can use an IIFE (Immediately Invoked Function Expression)
(function () {
// your code
})();