Coding Interview Question: Build a Function that Selects a Random Element from an Array in JavaScript

Feature thumb js sample

This code solution will select a random element from a given array in the JavaScript programming language.