0 / 60 seg.

If you want to validate that the input field with the ID "username" is not empty using JavaScript, which of the following codes would you use?

const username = document.getElementById('username').value;