bagaimana mendapatkan jalan terakhir dari url di javascript
const lastSegmentOfUrl = this.href.substring(this.href.lastIndexOf('/') + 1);
Anxious Alligator
const lastSegmentOfUrl = this.href.substring(this.href.lastIndexOf('/') + 1);