I am making an ajax call and returning an array of json data. I am then attempting to do an each on the object and create some HTML.
success: function (data) {
   var abc = null;
   var obj = $.parseJSON(data);
   $.each(obj, function(key, value) {
   abc += '<option value="' + key + '">' + value + '</option>';
   }); 
}
when I place the variable abc in the console, within the .each function, I can see the output. However when i try to access the variable abc from outside the .each function, I get an error message Uncaught ReferenceError: abc is not defined
 
    