Profile Status

Share a short update

Profile portrait of a smiling person

Current status: Learning JavaScript

Important HTML

JavaScript reads the input, listens for the button, and writes into the element with class status.

<h2 class="status">Current status: Learning JavaScript</h2>
<input id="status-input" type="text" name="status" placeholder="Write a new status">
<button id="update-button" type="button">Update status</button>