JS: Mark a 'good' test as 'bad' and add Alert marker

The lack of whitespace around '&&' is problematic
This commit is contained in:
Asger F
2025-02-11 16:20:39 +01:00
parent a9b263f465
commit 22c218d665

View File

@@ -38,8 +38,8 @@ function ok9(x, y, z) {
return x * y*z;
}
function ok10(o, p) {
return p in o&&o[p];
function bad10(o, p) {
return p in o&&o[p]; // $ Alert
}