Variable Interpolation

Does Wix handle variable interpolation in some strange way? Any time I attempt it via the normal method for javascript (eg console.log(“The variable is equal to ${inputVariable}.”)) it errors out hard upon preview. By that I mean it chugs hard and ignores inputs for a good minute, then pops up with an error in the console saying it failed to import script: , url: and does not load any custom code.

Edit: Having tested further; No, wix does not do interpolation at all. The error was being thrown by a seperate snippet of code.

Hi,

Does replacing:

 console.log("The variable is equal to ${inputVariable}.")) 

with:

console.log("The variable is equal to " + ${inputVariable} + "."));

resolve the problem for you?

It does (though the ${} isn’t needed with that method) I am simply asking if there is some form of proper interpolation available, so as to not have to re-format a few hundred lines of text I’ve written. Or a way to get it to not break everything.

Hi.Aresimas.
Are you sure you are using backticks ` , not the quotes (" or ') in your code?
In wixCode variable interpolation works the same way as it does in javascript. More on this article you can read here