I have a global namespace of constants, how to I dynamically loop through these?
$.sKey = {
k1: '9t1q6g',
k2: 'o849nc',
k3: 'xs96hn',
k4: 'jb24nc',
k5: 'iqokpb'
};
I have tried adaptations of the following:
for(var i = 0; i < 4; i++)
alert($.skey.k + i);
}