Access the input element to display its value in the console when clicking on the Sign up button.

<html>
<head><style>body {min-height: 300px;} input { font-size: 16px; } textarea { font-size: 16px; } </style></head>
<body>
  <h1>Sign up</h1>
  <input id="emailInput" type="text" placeholder="Email">
  <button onclick="signUp()">Sign up</button>
  <script>function signUp() {
var email = document.getElementById("emailInput").value;
console.log(email);
}</script>
</body>
</html>]]>