Create String object by calling its constructor : String Constructors : String JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » String » String Constructors »

 

Create String object by calling its constructor

















<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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo String
» String Constructors