zip = 12345
url = "http://zip.elevenbasetwo.com/v2/US/"+zip;
res = $.get(url)
When I run above code in the browser console then I can access res.responseJSON
but
When I run this code in my application.js then I can't access res.responseJSON
I am getting undefine.
Does anybody know what's the issue or how can I access in my application.js ?