Skip to content
Advertisement

Tag: javascript-objects

How to set Object Value equals Object value inside variable

I have a variable set to an object: In this block: I need to set cookieDomain: cookieDomain but it returns me an error Uncaught ReferenceError: cookieDomain is not defined and when I try cookieDomain: this.cookieDomain it prints undefined. How can I access the correct value? Answer you have two solutions here either define the cookieDomain variable in the same file

Function to create multidimensional object

Hello I’m strugglling with write everything from multi depth ul list into one object. I’ve got something like this. Depth One 1Depth Two 1Depth Three 1Depth Three 1Depth Two 1 Depth One 2Depth Two 2Depth Three 2Depth Two 2Depth Three 2Depth Three 2Depth Three 2 Depth One 3Depth Two 3Depth Three 3Depth Three 3Depth Three 3Depth Three 3Depth Three 3Depth

Advertisement