JSFiddle - React, Tailwind, and code Playground

HTML

<h1>JavaScript Foundations</h1>
<button id="action">Action</button>
<input id="text_field">

CSS

body {
    background:gold;
    font-size:1.8em;
}

JavaScript

var button = document.GetElementById('action');
 var input = document.GetElementById('text_field');


button.addEventListener ('click', function () {
  console.log('Clicked');
});

button.addEventListener ('click', function () {
  console.log('Other Clicking');
  input.setAttribute('value', 'Type Your Action Here');
  
});