Given a sentence, return the first word that starts with 'g' and ends with 'o'. If there is no match return null.
// input:
const s = 'The blue gecko climbed the brick wall'
// output:
'gecko'
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)
Given a sentence, return the first word that starts with 'g' and ends with 'o'. If there is no match return null.
// input:
const s = 'The blue gecko climbed the brick wall'
// output:
'gecko'
/* output */