1513 var canvas = document.getElementById(tag_id).appendChild(canvas_el);
1514
1515 /* launch particle.js */
1516 if(canvas != null){1517 pJSDom.push(new pJS(tag_id, params));
1518 }
1519
Comparing to null
without a type-checking operator (===
or !==
), can have unintended results as the comparison will evaluate to true
when comparing to not just a null
, but also an undefined
value.
if (flag == null) {
change();
}
while (isSet != null) {
handle();
}
if (flag === null) {
change();
}
while (isSet !== null) {
handle();
}