Lesson 2 - Challenge 2 - starting point

by nathanesa

HTML

<title>My GUI experiment</title>
<h1>My GUI experiment</h1>
<p>This is just a simple textbox right now.</p>
<br>

<form>
  <input id="inputText" type="text" oninput="produceOutput()"/>
</form>

<p id="output"></p>

JavaScript

function produceOutput() {

	// Modify the JavaScript code here to extract the value from your input control.
  let userInput = document.getElementById('inputText').value;
  
  // Modify the JavaScript code here to do something smart with the value.
  document.getElementById('output').innerHTML = 'You entered ' + userInput;

}