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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s defining an object with a
gridproperty that is set totruewhich is being assigned todefault_hide.In that context, the braces are defining an
Object.