We're a place where coders share, stay up-to-date and grow their careers.
Okay thanks. I've corrected it
And here is what you want:
submit.addEventListener('click', () => { const {value} = yourName const firstChar = value.slice(0, 1) const lastChar = value.slice(-1) div.classList.add('hide') welcome.textContent = firstChar + lastChar })
Wow, that worked.
I don't even understand the code (*LOL I haven't learnt the 'const / {} => yet *) but yeah it worked.
Thank you very much
Okay thanks. I've corrected it
And here is what you want:
Wow, that worked.
I don't even understand the code (*LOL I haven't learnt the 'const / {} => yet *) but yeah it worked.
Thank you very much