SyntaxFix
Write A Post
Hire A Developer
Questions
Just use this. simple and effective:
var y; function something(x){ return x; } $.get(bunch of codes, function (data){ y=something(data); )} //anywhere else console.log(y);