how to add value array es6 code example Example: javascript append to array var colors=["red","white"]; colors.push("blue");//append 'blue' to colors