Gabriel ← Customer Feedback for 3T Software Labs GmbH My feedback redeclaration of const 3 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 1 comment · Share your ideas with us · Flag idea as inappropriate…Flag idea as inappropriate… · Delete… · Admin → An error occurred while saving the comment Gabriel commented · Apr 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 · Apr 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
})();