Created
February 2, 2012 22:25
-
-
Save Diullei/1726179 to your computer and use it in GitHub Desktop.
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
// definindo a função que será utilizada como contrutor do nosso objeto. | |
var Carro = function(marca){ | |
this.marca = marca; | |
} | |
// criamos um objeto carro utilizando o operador new | |
var camaro = new Carro('camaro'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment