JSFiddle - React, Tailwind, and code Playground

HTML

test

JavaScript

function sayHi(firstName, lastName){
    console.log("Hello, "+firstName+" "+lastName);
}

var name = ["John", "Doe"];

// sayHi takes two parameters. The firstName, and lastName.
// Implement below

sayHi(name[0], name[1]);