Link to home
Start Free TrialLog in
Avatar of MJ
MJFlag for United States of America

asked on

Accessing sub-object

How do I access properties of a sub object in JS? Is it just Obj.data.value1 etc?
Obj = {
	event: 'signup',
	view: 'features',
	element: 'some element', 
	data: {
		value1:'myVal1',
                value2:'myVal2',
                valueN:'myValN',
	}
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial