diff --git a/script.js b/script.js index 54c1d9c..afb95ca 100644 --- a/script.js +++ b/script.js @@ -1,2 +1,46 @@ -const iono = 'Hi my name is Slim Shady'; -console.log(iono); \ No newline at end of file +const textareaEl = document.querySelector('.textarea'); +const wordsNumberEl = document.querySelector('.stat__number--words') +const charactersNumberEl = document.querySelector('.stat__number--characters') +const twitterNumberEl = document.querySelector('.stat__number--twitter') +const facebookNumberEl = document.querySelector('.stat__number--facebook') + + +const inputHandler = () => { + //example of input validation + if (textareaEl.value.includes('