add new solutions

pull/587/head
hansmbua 3 years ago
parent 8b4f5a7e8c
commit 7443ca6c17

@ -1,7 +1,7 @@
let space = ' ' // an empty space string // 'Love is the best thing in this world. Some found their love and some are still looking for their love.' Count the number of word love in this sentence.
let firstName = 'Asabeneh' let quote = "Love is the best thing in this world. Some found their love and some are still looking for their love.' Count the number of word love in this sentence.";
let lastName = 'Yetayeh'
let country = 'Finland' let pattern = /love/gi;
let city = 'Helsinki' let getwords = quote.match(pattern);
let language = 'JavaScript' const numberOfLove = getwords.length;
let job = 'teacher' console.log(numberOfLove);

Loading…
Cancel
Save