Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
what is the meaning of this code:
aoData.push({"name":"more_data","value":"my_value"});
where is more_data and my_value get from?
more_data
my_value
more_data and my_value are strings... that means that value never change! They aren't variables!
aoData is an array, and push is adding in the array that values...
push function is like $arrayvar[] = "test"; on the PHP
It adds the value to the end of the array...
Add a comment
aoData is an array defined somewhere and with push more elements are pushed into the array.
aoData
push
See:
Push Method
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.