Understand how JavaScript array methods work by implementing three of the most common methods: map(), filter() and reduce.