Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
var myObj = new Object();
Object.preventExtensions(myObj);
myObj.name = "Smith";
console.log(myObj.name);
(function () {
    "use strict";
    try {
        var strictObj = new Object();
        Object.preventExtensions(strictObj);
        strictObj.name = "Smith";
        console.log(strictObj.name);
    } catch (ex) {
        console.log("Strict mode Exception ::: " + ex);
    }
})();
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
zaheerahmedpro
0viewers