I am currently learning javascript and there is something that I don't understand.
//This means that I am using a method from the String.prototype
"ThisIsMyString".length
So, if I use ("ThisIsMyString" instanceof String) was suppose to return true, wasn't it? But turns out that returns false.. and I belive that is because the primitive type.
Here is my question: If "ThisIsMyString" is not an instance of String, how it can access property from that Object? What's the part of the puzzle that I don't know?