js基礎タイプの包装対象


<!DOCTYPE HTML>
<html>
    <head>
        <title>please enter your title</title>
        <meta charset="utf-8">
        <meta name="Author" content="   ">
        <style type='text/css'> *{ margin:0; padding:0;} </style>
    </head>
    <body>

        <script type="text/javascript"> var str = 'abc'; //                 :Number String Boolean /*                 ,            var a = new String('abc');//alert( typeof a )                 a.charAt(0);     ,      ; */ str.ligoudaner = 10; /* var a = new String('abc'); a.ligoudaner = 10; a          ; */ alert( str.ligoudaner ) // undefined /* var b = new String('abc'); b.ligoudaner */ </script>
    </body>
</html>