Is it possible to reuse a property during the declaration in JavaScript?
Example : phone_min: breakpoint.small_max + 1,
Code
var breakpoint = {
small_max: 479,
phone_min: breakpoint.small_max + 1,
};
I got error :
Uncaught TypeError: Cannot read property 'small_max' of undefined