I’m looking for how to count the words of a sentence.
It’s to practice, not for a project !
This is an attempt to practice Codecademy’s courses :
Thanks to give me a hint or explain to me what I forgot !
let myMonkey1 = ’ do not see anything’;
var myMonkey2 = ’ not hear anything’;
const myMonkey3 = ’ say nothing’;
let domiSays = ’ Hey, U ! Do you code as well ? :)’
console.log(‘The motto of the three monkeys is’ + myMonkey1 + ‘,’ + myMonkey2 + ‘,’ + myMonkey3 + ’ !’+ domiSays);
const str = myMonkey1 + myMonkey2 + myMonkey3 + domiSays;
//output : undifined !