I just noticed that there is no prototype property on strings in JavaScript.
This is a pedagogical question while I try to wrap my head around the JavaScript type system but what gives?
How come "abc".toString() works? And how would I go about extending strings? If I wanted to be able to do "hey you!".alertDialog() for example?
1 Answer