IF a THEN b ELSE c;
/** * IF: IF a THEN b ELSE c; * * @param x1 condition (1/0) * @param x2 variable for 1 * @param x3 variable for 0 * @return {Array} */ function neuron579(x1, x2, x3) { return [(x1) ? x2 : x3]; } console.log(neuron579(141, 906, 54));