guard2k1
12 months ago  Karma: 63
What is the push code used to accomplish in Javascript programming?

i am using a resteem bot on steemit, and one of the commands in the program is commentqueue.push

what is the push meant to accomplish?

en
Javascript
node.js
guard2k1
12 months ago  Karma: 63
What is the push code used to accomplish in Javascript programming?

i am using a resteem bot on steemit, and one of the commands in the program is commentqueue.push

what is the push meant to accomplish?

en
Javascript
node.js

2 ANSWERS
benjithebigdogg
12 months ago Karma: 135

push adds an element onto the end of an array. For example:

comments = ['great post!'];
comments.push('loved it!');

The comments array is now ['great post!', 'loved it!'].

Hope this helps.

push adds an element onto the end of an array. For example:

comments = ['great post!'];
comments.push('loved it!');

The comments array is now ['great post!', 'loved it!'].

Hope this helps.

guard2k1

Thanks. You hit it spot on

Jun 24 '18 at 1:11 am
kaijchang2
12 months ago Karma: 19864

It adds an element to the end of an array.

It adds an element to the end of an array.

Earn tokens by posting and answering questions about blockchain!
Karma to eth
YOUR ANSWER