String primitives and String objects give different results when evaluated as JavaScript. Primitives are treated as source code, but String objects ar
{"Image DocumentName": "JavaScript Core Objects (contd.)", "Image ImageDescription": "String primitives and String objects give different results when evaluated as JavaScript. Primitives are treated as source code, but String objects are treated as a character sequence object. s1 = // creates a string primitive. s2 = new String( ) // creates a String object. eval(s1) // returns the number 4. eval(s2) // returns the string eval(s2.valueOf()); // returns the number 4. FaaDoOEngineers.com.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}