JavaScript split dapatkan elemen terakhir
a = "hello.dear.friends"
a.split(".").pop()
> "friends"
Cerbrain
a = "hello.dear.friends"
a.split(".").pop()
> "friends"