var str1 = "Sagar"; //String literal var str2 = new String("Sagar"); //String Object str1.length; // Output: 5 str2.length; // Output: 5
/* How is it possible for a string literal like in str1 variable to access the properties and methods? */