Posted inStandard Objects: String
How to create a string in JavaScript
JavaScript's new String() constructor creates an object, not a primitive string. This causes strict equality (===) to fail, as typeof is 'object'. This difference between a string primitive and a string wrapper object leads to comparison bugs. Always avoid the new String() constructor.
