-
-
Save horaciod/e6178c365e7cc4c14f0164b9d970f910 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/zodilevulu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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