Skip to content

Instantly share code, notes, and snippets.

@emanoelqueiroz
Last active September 23, 2016 12:04
Show Gist options
  • Save emanoelqueiroz/bfc51ced5c6dbaa57af6 to your computer and use it in GitHub Desktop.
Save emanoelqueiroz/bfc51ced5c6dbaa57af6 to your computer and use it in GitHub Desktop.
Look that bitch!
var obj = {};
obj = {
a: function(a) {
console.log('Você escolheu A de ' + a);
},
b: function(b) {
console.log('Você escolheu B de ' + b);
},
c: function(c) {
console.log('Você escolheu C de ' + c);
}
}
// -----------------------------------------------------//
var nomeB = 'Bernardo';
+function (nomeC) {
console.log(obj.a('Arnaldo'));
console.log(obj.b(nomeB));
console.log(obj.c(nomeC));
}('Comodoro');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment