Title: Uncaught TypeError: Assignment to constant variable.
Last modified: March 6, 2023

---

# Uncaught TypeError: Assignment to constant variable.

 *  [Rodrigo Salles](https://wordpress.org/support/users/roosalles/)
 * (@roosalles)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-assignment-to-constant-variable/)
 * I am getting an error coming from one of your scripts that is breaking additional
   functionalities from the page. Basically, the problem is that you’re assigning
   a value to a variable that is declared globally here.
   You can see screenshot 
   here:[https://take.ms/THapX](https://take.ms/THapX)I’d suggest declaring the ‘
   i’ variable locally in your scope so that this issue is gone.

The topic ‘Uncaught TypeError: Assignment to constant variable.’ is closed to new
replies.

 * ![](https://ps.w.org/dethemekit-for-elementor/assets/icon.svg?rev=2359546)
 * [DethemeKit for Elementor](https://wordpress.org/plugins/dethemekit-for-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dethemekit-for-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dethemekit-for-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/dethemekit-for-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dethemekit-for-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dethemekit-for-elementor/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Rodrigo Salles](https://wordpress.org/support/users/roosalles/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-assignment-to-constant-variable/)
 * Status: not resolved