<input value="" class="c-input-username" placeholder="User name" type="text">
<input value="" class="c-input-password" placeholder="Password" type="password">
<input value="" class="c-input-cpassword" placeholder="Confirm password" type="password">
<input value="" class="c-input-email" placeholder="Email" type="email">
<button>Registration</button>
let login = document.querySelector('.c-input-username')
let password = document.querySelector('.c-input-password')
let cpassword = document.querySelector('.c-input-cpassword')
let email = document.querySelector('.c-input-email')
let button = document.querySelector('button')
button.onclick = function () {
// output data to the console
console.log('Username: ' +login.value)
console.log('Password: ' +password.value)
console.log('Confirm password: ' +cpassword.value)
console.log('Email: ' +email.value)
Спасибо.