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:

exo_get_resstring(‘SPubVersion’);

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