JSFiddle - React, Tailwind, and code Playground

by Jake Overall

JavaScript

var arr = [1,2,3];

function first(arr){
    alert(arr[0]);
}

first(arr);

//create a function named 'first' that returns the first object from a given array

//alert the result of your function