We'll combine the user's name and age to generate the username.

Store the content of the paragraph with the ID "name" in a variable you call name.

<html>
<body>
  <p id="name">JohnnyG</p>
  <p id="age">25</p>
  <button onclick="generate()">Generate a username</button>
  <p id="username"></p>
  <script src="script.js"></script>
</body>
</html>
]]>

Make sure to assemble var name = document.getElementById("name").innerHTML;.