JavaScript Static Member

JavaScript Static Member

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <script id="javascript">
        function personalDetail(fname, lname) {
            this.fname = fname;
            this.lname = lname;
        }

        personalDetail.email = "akshayblevel@gmail.com";

        var pDetail = new personalDetail();

        var email = pDetail.email; // Can't Access
        email = personalDetail.email;

        alert(email);
    </script>
</body>
</html>

image.png