2022-01-12 14:58:42 -08:00

9 lines
210 B
JavaScript

> let x = "foo";
> let y = "";
> if (x.length === 0 && y.length === 0) {
"Both strings are empty!";
} else {
"At least one of the strings is nonempty.";
}
'At least one of the strings is nonempty.'