AdvertisementsAdvertisements

gHappy

Challenge 📝

Resources 📚

A small 'g' is 'happy', but only if a small 'g' follows before or after it. Return true if all g's are happy.

function gHappy(string) {
}
Test Cases
Console Logs
JS Errors
Run Code!
flag