← Back to challenges

Amazing Edabit!

JavaScriptHardstringsvalidationregex

Instructions

Create a function that takes a string and changes the word amazing to not amazing. Return the string without any change if the word edabit is part of the string.

Examples

amazingEdabit("edabit is amazing.") ➞ "edabit is amazing."

amazingEdabit("Mubashir is amazing.") ➞ "Mubashir is not amazing."

amazingEdabit("Infinity is amazing.") ➞ "Infinity is not amazing."

Notes

Edabit is amazing :)

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Fix the Broken Code