CodingJS

Solve programming problems in Javascript!

Array-1

--

maxEnd3

Given an array of ints length 3, figure out which is larger, the first or last element in the array, and set all the other elements to be that value. Return the changed array.

Examples

(ctrl-enter)

Popup content