Quote:if (x === 0) { y = y + 2; console.log(y); } else { y = y + 3; console.log(y); }
Java
Javascript
y += (x === 0) ? 2 : 3; console.log(y);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)