Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ES6
- function Perro (nombre) {
- this.nombre = nombre;
- }
- Perro.prototype.hablar = function () {
- console.log('woof');
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement