Hi,
I have an html element on page inside which I am running a js. The js has a variable which takes value from db. The code inside HTML is given below
When I run this page i get the following error.
“run_debug.js:592 Bug in custom html:
SyntaxError: Identifier ‘winSliderMsg’ has already been declared”
The error doesn’t appear on first page load but occurs only when i refresh the page. I haven’t declared this variable again. Also, if I assign a simple string to the variable like
let winSliderMsg =“test msg”;
the error disappears.
Any idea of why this is happening?