Buggy Code

Published by Werdna in

The challenge is to try and fix this buggy code, given the inputs true and false. See the examples below for the expected output.

Examples

hasBugs(true) ➞ "sad days"

hasBugs(false) ➞ "it's a good day"

Notes

Don't overthink this challenge (look at the syntax and correct it).

Watch a quick demo on how Edabit works.