String literals don't have any functions, but an anonymous
String object will be created for you and the function will be invoked via that. So your code is equivalent to,
var myString = 'this is a string';
Happy birthday, Immerse!