Created
February 20, 2020 02:03
-
-
Save jasminegmp/3f83f8720c607acb855a50f9f1e1e5ca to your computer and use it in GitHub Desktop.
This file contains 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 Dog = function(breed){ | |
this.breed = breed; | |
} | |
let chihuahua = new Dog('Chihuahua'); | |
console.log(chihuahua); // will output Dog { breed: 'Chihuahua' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment