Ok so I am trying to create a loop that creates a dynamic variable but I cant find out how to do this. this is what I have so far
var map = {
'flammable': 'inflammable',
'duh': 'no duh'
};
$.each(map, function(key, value) {
var key = value;
});
alert(duh);
But every time I run this is states that duh is not defined. What am I doing wrong?