Please, look into this code. Why does creating of the same regular expression by different ways (by /regex/ literal and through RegExp constructor) cause different result? Why doesn't the second pattern ...
Could someone guide me how to set my own length for a String, as in "string".length or String("string").length.
Afaik, String is a descendant from Object, and the length assignment probably takes place ...
In trying to built a object with a inner propriety in the constructor function that keeps the array with all the objects created with the same constructor.
I'm thinking that the best ...