append input to array code example
Example 1: append element to an array python
x = ['Red', 'Blue']
x.append('Yellow')
Example 2: javascript append to array
var colors=["red","white"];
colors.push("blue");//append 'blue' to colors
x = ['Red', 'Blue']
x.append('Yellow')
var colors=["red","white"];
colors.push("blue");//append 'blue' to colors