How can I get the version of the app

Hi Im trying to find a way to get the version of the compiled app. I searched about the topic in the forum, but the links provided are gone. Just found the suggestion of using:


How do I use that in javascript? Can you provide an example please?