var a = "words";
a instanceOf String;
#=> false
I can't understand how this code snippet works.
- Is
instanceofa method ofa, or ofthiswhich locates it in the default scope? - If
Stringhere is a parameter passed toinstanceof, how come it doesn't have parentheses?