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

Functions in postscribe scripts #515

@kashid16

Description

@kashid16

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions