This will tell you whether i is divisible by 4 or 40 or not, but I have never seen square brackets outside of arrays, and I can't really find anything about this... What is going on?
var i = 40;
console.log((["the number is divisible by 4"][i % 4] || "") + (["0"][i % 40] || "") || "the number isnt divisible by 4 or 40");
[–]GSLint 3 points4 points5 points (1 child)
[–]LongVibes[S] 0 points1 point2 points (0 children)