Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

two string compare in mjs

let day = false;
if (a > "07" && a< "19") {
day = true; // 1
}

When a is "13", statement "1" is not reach.
But a === "13", its result is true.

Comments

Sign In or Register to comment.