Headline 2

Challenge 📝

Resources 📚

The string greeting is given. Output this string in a HTML p tag and color the font green if greeting contains the word 'Hi' and blue if greeting contains the word 'Hello'. If both occur, the word turns red. Print the content into the body tag.

function headline2(greeting) {
}
Test Cases
Console Logs
JS Errors
Run Code!
flag