function truthyOrFalsy(random) {
return (random ? "true" : "false")
}
console.log(truthyOrFalsy(39))
Last active
June 17, 2021 04:08
-
-
Save tripdog/e9d0b50a39f0564f66009360116e3571 to your computer and use it in GitHub Desktop.
If the variable is truthy return true, else return false
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment