I am unable to call functions metioned inside postscribe script. So let's say I have added func -
function myFunction() { console.log("Calling func") let carName = "Volvo"; document.getElementById("demo1").innerHTML = typeof carName + " " + carName; }
And inside div I am calling this function with onclick. But I am getting error as "myFunction is undefined." Is this a limitation to postscribe ? Or am I doing something wrong ?
I am unable to call functions metioned inside postscribe script. So let's say I have added func -
function myFunction() { console.log("Calling func") let carName = "Volvo"; document.getElementById("demo1").innerHTML = typeof carName + " " + carName; }
And inside div I am calling this function with onclick. But I am getting error as "myFunction is undefined." Is this a limitation to postscribe ? Or am I doing something wrong ?