I have the following code example...
$.pg = {
width : 700,
height: 200,
rate: 30
};
Is there a convenient way I can write $.pg[width], rather than $.pg['width'] all the time to get 700? The whole point of me putting width, height and rate into pg, is so I can write less.
Thanks
$.pg = { w: 700...and then just do$.pg.w