Monday, January 6, 2014

Undefined and Defaults in Javascript


K =  {};
K.T = K.T || {};
K.T.F = K.T.F || {};


the first line raises an undefined error - the other lines are ok


No comments:

Post a Comment