<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="style.css">
    <script src="script.js"></script>
  </head>
  <body>
    <h1>object copy for non-enumerable properties</h1>
    <h5>non-enumerable properties cannot be copied</h5>
  </body>
<script>
let someObj = {
 a: 2,
}
let obj = Object.create(someObj, {
 b: {
   value: 2, 
 },
 c: {
   value: 3,
   enumerable: true, 
 },
});
console.log(obj);
let objCopy = Object.assign({}, obj);
console.log(objCopy); // { c: 3 }
</script>
</html>
                
            
        
            
                
                    // Code goes here
                
            
        
            
                
                    /* Styles go here */