JSFiddle - React, Tailwind, and code Playground

by TheDiamondDoge

HTML

<button onclick="call()">

</button>

JavaScript

const turtle = {
  name: "fred",
  age: 30
}

function feed({name, age}){
	alert("Feed ${name}, Age ${age}");
}

function call(){
	feed(turtle);
}