Rad1
asked on
Javascript question
Hi,
Could any one explain the below code for me, I want to make sure that I understand it correctly.
More precisely: var mystuff = {}; ???
Thanks!!!
Could any one explain the below code for me, I want to make sure that I understand it correctly.
More precisely: var mystuff = {}; ???
Thanks!!!
if(typeof(mystuff) === "undefined" || !mystuff) {
var mystuff = {};
}
if(typeof(mystuff.widget) === "undefined" || !mystuff.widget) {
mystuff.widget = {};
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER