Can someone please explain what the following javascript statement is doing?
var default_hide = {"grid": true };
It looks like some sort of conditional statement similar to a ternary statement?
Can someone please explain what the following javascript statement is doing?
var default_hide = {"grid": true };
It looks like some sort of conditional statement similar to a ternary statement?
It's defining an object with a grid property that is set to true which is being assigned to default_hide.
In that context, the braces are defining an Object.