the AND operator (&&) returns a boolean based on the value of BOTH operands #javascript #coding

preview_player
Показать описание
A step-by-step tutorial on how to use the AND (&&) operator in JavaScript.
Рекомендации по теме
Комментарии
Автор

isZero = sign == 0 ? true : false;

Is at least a bit easier to read if you still really want to use a ternary operator in an assignment

johngarzon-ferrer