JavaScript Tutorial/String/String Constructors
Create String object by calling its constructor: new String()
<html>
<head>
<title>new String();</title>
<script type="text/javascript" language="javascript">
<!-- //
onload = function(){
var s = new String("aaA");
var upperCase = s.toUpperCase();
document.write(upperCase);
}
// -->
</script>
</head>
<body>
</body>
</html>