Written in Javascript
:
var data =
[
{
value: 30,
color: "blue"
}
]
I want to push and remove some values from it.
I tried:
data.push (10, "red")
data.push (111, "green")
data.push (1112, "blue")
console.log (data)
console.log (data[0].value)
console.log (data[1].value)
which resulted in:
qml: [[object Object],10,red,111,green,1112,blue]
qml: 30
qml: undefined
The first value present by default in the structure is not shown in console with first print.
I am not able to see the value of the first pushed item with third print.