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…
Reference in new issue