Skip to content
Advertisement

Return string without trailing slash

I have two variables:

JavaScript

I want to do something like this

JavaScript

How do I do this?

Advertisement

Answer

Try this:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement