const location = this.getCurrentCoordinates().format("C, c").toString();

Mostly on Stack Overflow.

Contact me at [email protected] -- BUT -- if you have a question you'd like me to help you with, please create a codepen, JSfiddle, repl, or use some other online development environment that demonstrates your problem. See the Stack Overflow guide to creating a MRE if you need help with that.

I find that doing this gives me the best chance that I can help you, as I can then see where in the code the problem is occurring. Furthermore, DO NOT send me screenshots of your code, as they are counterproductive, because then I have to retype everything.

Check out a project of mine that I work on on and off: