Skip to content

Instantly share code, notes, and snippets.

Created October 9, 2017 20:12
Show Gist options
  • Save anonymous/5c99593c44f43ef99eee8f4132c89552 to your computer and use it in GitHub Desktop.
Save anonymous/5c99593c44f43ef99eee8f4132c89552 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/zodilevulu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
let user = {nombre : "pepe"} ;
console.log(user);
console.log(user.__proto__) ;
let animal= Object.create(null) ;
animal.vivo = true;
console.log(animal) ;
let perro = Object.create(animal) ;
perro.ladra = 1 ;
console.log(perro) ;
console.log( typeof perro);
</script>
<script id="jsbin-source-javascript" type="text/javascript">let user = {nombre : "pepe"} ;
console.log(user);
console.log(user.__proto__) ;
let animal= Object.create(null) ;
animal.vivo = true;
console.log(animal) ;
let perro = Object.create(animal) ;
perro.ladra = 1 ;
console.log(perro) ;
console.log( typeof perro);
</script></body>
</html>
let user = {nombre : "pepe"} ;
console.log(user);
console.log(user.__proto__) ;
let animal= Object.create(null) ;
animal.vivo = true;
console.log(animal) ;
let perro = Object.create(animal) ;
perro.ladra = 1 ;
console.log(perro) ;
console.log( typeof perro);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment