@johnnunns Not outside the function, just above the for loop
And you're pushing an array to the array, not just the value
and the array's first value will be the property and the second value is the object value
John Nunns
@johnnunns
oh wow
functionconvertObjectToList(obj){
var x = []
for(var i in obj){
x.push([i,obj[i]])
}
return x
}
convertObjectToList(obj)
I think I did it?
Sorin Ruse
@sorinr
@asmaamoussa as i said yesterday using same colors fur the buttons in the nav as you have the on the picture's doors it will make sense to the user that clicking that button will open a specific door (get some specific info)
JD Tadlock
@jdtdesigns
;)
@johnnunns
John Nunns
@johnnunns
ok, here's the barrage of questions now :)
i by itself equaled all of the values in the object correct?
JD Tadlock
@jdtdesigns
the properties
John Nunns
@johnnunns
only the properties?
JD Tadlock
@jdtdesigns
yep
John Nunns
@johnnunns
so if i console.log(i) it would just be name, age, etc
JD Tadlock
@jdtdesigns
correct
John Nunns
@johnnunns
ok, well that's that then
because it makes sense to me that obj[i] then equals the values
cool stuff.
JD Tadlock
@jdtdesigns
eezypeezy
John Nunns
@johnnunns
Still got to it with your help and some very random tinkering haha
asmaamoussa
@asmaamoussa
@sorinr yes I loved your idea and on my way to execute it. Now I am more concerned with positioning the social media buttons. can u help
_
CamperBot
@camperbot
johnnunns sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles: