on mini linter and at the end it say to try making a function for the counts and i wanna know how one who go about it so i can see for future reference.
const logInfo = (param1, param2, param3) => {
console.log('Word count: ' + param1);
//The rest of your code goes here};
this is the hint it gave and i kinda tired a go at it but i can’t get nothing to work. also can be use to simplify the overusedWords count into a function so i only had to write it onces and called it later so i can console.log it into the logInfo
What I did was to allocate 5 parameters to the function and passing in word count as storyWords.length, sentence count, really, very and basically counts as the arguments.