Skip to content

Instantly share code, notes, and snippets.

@jparbros
Created October 21, 2015 00:59
Show Gist options
  • Select an option

  • Save jparbros/84762811bad862f6508c to your computer and use it in GitHub Desktop.

Select an option

Save jparbros/84762811bad862f6508c to your computer and use it in GitHub Desktop.
(function($){
var variable1= bla bla bla;
function init() {
otraFunciton();
}
function otraFunciton() {
variable1
}
$(init);
})(jQuery);
@rodacato

Copy link
Copy Markdown

(function($){
var variable1='puto',
that = this;

function init() {
otraFunciton();
}

function otraFunciton() {
var y=variable1
alert(y)
}

init();

})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment