Hello there. I’d like some help on a recent assignment on a Udemy course. Here are the instructions and what I need to do.
And here is my code so far:
const h1 = document.querySelector('h1');
const h2 = document.querySelector('Welcome, ');
input.addEventListener('change', function (e) {
h1.innerText = input.value;
})
The Udemy editor doesn't like where I put "Welcome, ". I have the basics. I appreciate the help.
No one lol. That’s my attempt to add the "Welcome, ". I’ll be honest, at least 75% of why I don’t have a job in software yet is my ADD and inability to read instructions well enough.
<head>
<title>Input Event</title>
<!--LEAVE THESE LINES ALONE, PLEASE! THEY MAKE THE LIVE PREVIEW WORK!-->
<script src="node_modules/babel-polyfill/dist/polyfill.js" type="text/javascript"> </script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
</head>
<body>
<h1>Enter Your Username</h1>
<input type="text" id="username">
</body>
</html>