than i have this in my variables:
neco1: "pa"
neco2: "myObj.september17[0].dayname"
i would like to have value "pa" inside like in neco1 but i would like to be able to change name of month. Is it possible
Hi all,
I have a simple problem. I would like to have a value of Object "myObj.september17[0].dayname" in my variable neco2. but there is of course more month which i need access and i need to changing this variable but when i use "myObj." + parametr + "17[0].dayname"; it is saved a string to variable instead of value.
I am very new in JS, learning two days now so please be patient with me.
How to save value of object instead of string
in JavaScript
Posted
than i have this in my variables: neco1: "pa" neco2: "myObj.september17[0].dayname" i would like to have value "pa" inside like in neco1 but i would like to be able to change name of month. Is it possible
Hi all,
I have a simple problem. I would like to have a value of Object "myObj.september17[0].dayname" in my variable neco2. but there is of course more month which i need access and i need to changing this variable but when i use "myObj." + parametr + "17[0].dayname"; it is saved a string to variable instead of value.
I am very new in JS, learning two days now so please be patient with me.