Rhino
js> var s = "abc"; abc js> s = new String(s); abc js> s == new String("abc"); false js> typeof s object js> s instanceof String true js> s = s.toString(); abc js> typeof s string js> s == "abc"; true js> s = new java.lang.String("abc"); ab…
js> var s = "abc"; abc js> s = new String(s); abc js> s == new String("abc"); false js> typeof s object js> s instanceof String true js> s = s.toString(); abc js> typeof s string js> s == "abc"; true js> s = new java.lang.String("abc"); ab…