All your functions needs to return a thruty value if the validation passes. However, as soon as one function returns false
or a falsey value, the validation process will halt. This is because the &&
operator uses short-circuit evaluation.
Basically, if validateTitle()
fails, the rest of the functions won't get executed.