Write a function checkSpam(text) that returns true if the string contains free money or xxx, and false if not. Letter case does not matter.
checkSpam('Get FREE money now')Returns true
checkSpam('xXx files')Returns true
checkSpam('Release notes')Returns false
checkSpam('Get FREE money now')truecheckSpam('xXx files')truecheckSpam('Release notes')falseHidden tests run on Submit.