DEV Community

Discussion on: Introduction to JavaScript Strings

Collapse
 
pengeszikra profile image
Peter Vivo • Edited

The new .at also works in String ... but not in IE

'Elon Musk'.at(-1) // k

'Elon Musk'.slice(-4) // Musk
Enter fullscreen mode Exit fullscreen mode

Maybe you can write about regexp which is great tool of string handling.

Collapse
 
naftalimurgor profile image
Naftali Murgor

Great insight! Never occured to me. I think IE is the "lost sheep" of web browsers haha