Amazing Edabit!

Published by Mubashir Hassan in

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 :)

Watch a quick demo on how Edabit works.