JSFiddle - React, Tailwind, and code Playground

by rachelmc_

HTML

<p>My name is <input type="text" id="userName">. I have known <input type="text" id="name1"> for <input type="text" id="word"> years.</p>

<p>I met  <span id="person"></span>through <input type="text" id="word">.</p>


<p>At that time in my life I was <input type="text" id="word">.</p>
<p><input type="text" id="name"> helped me <input type="text" id="word">.</p>

<p><input type="text" id="name"> taught me <input type="text" id="word">.</p>

<p>Having <input type="text" id="name"> in my life makes me feel <input type="text" id="word">.</p>

<p> I always want to remind <input type="text" id="name"> that they <input type="text" id="word">.</p>

<p><input type="text" id="name"> needs to know that they are <input type="text" id="word">. </p>

JavaScript

function myFunction() {
  var txt;
  var person = prompt("What is your name?");
  if (person == null || person == "") {
    txt = "User cancelled the prompt.";
  } else {
    txt = "Hello " + person + "! How are you today?";
  }
  document.getElementById("demo").innerHTML = txt;
}


function myFunction() {
    var personName = document.getElementById("name1").value;
		document.getElementById("person").innerHTML = personName;
}