Given an array of integers, find the largest possible product obtained by multiplying two adjacent numbers in an array.
Examples
adjacentProduct([1, 2, 3])
==> returns 6
adjacentProduct([3, 4, 5])
==> returns 20
Tests
adjacentProduct([3, 7, 9])
adjacentProduct([-3, -4, 15])
adjacentProduct([-4, -1, -10])
Good luck!
This challenge comes from MrZizoScream on CodeWars. Thank you to CodeWars, who has licensed redistribution of this challenge under the 2-Clause BSD License!
Want to propose a challenge idea for a future post? Email yo+challenge@dev.to with your suggestions!