How to store or retreive a global variable client side

Someone asked the same thing and there's no meaningful reply:

For PHP that's your best way in my opinion. For NodeJS Wappler has the official feature server-side binding