Posts for Andikan Affiah

Software developer,

Understand Promises in JavaScript

You know that moment you promise to send your friends a Christmas gift and they have to wait for you to keep that promise(resolve), then further actions can be taken or if you break the promise(reject), they would like to know what happened (catch), so that they can plan what to do next or how […]

December 26, 2019 in Code examples & Javascript

Working with JavaScript Array.push() method

Arrays Arrays are list-like objects whose prototype has methods to perform traversal and mutation operations. Unlike Sets which only contain unique items, Arrays can contain duplicates items. JavaScript Array.prototype.Push() In this post, we will be talking about JavaScript Array.push() method with examples. The Array.push() method is used to add items to the end of an […]

December 19, 2019 in Code examples & Javascript