Nice article. Always something new to learn.
Regarding the solution with
console.log(getBaz()) || getBaz() > 1
works well, unless
getBaz() returns different values on consecutive calls (e.g. it increments an outer scope counter) in which case the console log will print one value and the condition check will use another.
print() suggested afterwards solves it, but as an intermmediate solution (no extra function definition), you can always call
getBaz() just once:
console.log(cache=getBaz()) || cache;