Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Functions in postscribe scripts #515

Open
kashid16 opened this issue Feb 1, 2023 · 0 comments
Open

Functions in postscribe scripts #515

kashid16 opened this issue Feb 1, 2023 · 0 comments

Comments

@kashid16
Copy link

kashid16 commented Feb 1, 2023

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant