SyntaxFix
Write A Post
Hire A Developer
Questions
Split the url and pop the last element url.split('/').pop()
url.split('/').pop()