← Back to JavaScript exercises

12. Largest and Smallest Array Element

Result appears here
const a=[8,3,11,2];output.textContent=`${Math.max(...a)} / ${Math.min(...a)}`;