Javascript array needs to replace the static values inside the square brackets[] and curly Brackets {}
console.log(my_array[0]); // This returns x: 201.5,y: 136.5,z: 0
$('#superdiv').addSpice(function(super){
return $(document.createElement('span')).addClass('note').html(super.z);},
[ {x: 0.3875, y: 0.3246, z: 4}, //Should be Array Value1
{x: 0.57, y: 0.329, z: 2} //Should be Array Value2
]);}
Right now everything inside the [] is static … I have an array that has several values like the following and I want to fill the values into same manner … but with the array my_array[0]=”x: 0.3875, y: 0.3246, z: 4″; my_array[1]=”x: 0.57, y: 0.329, z: 2″;
Something like that ?