JSFiddle - React, Tailwind, and code Playground

JavaScript

var arr = [1,2,3];

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

//alert the result of your function