These are chat archives for dcsan/gitterbot
The Ternary operator replaces an if/then block in a very small compact way.It's mostly used in one liners for simple tests and replacements, like this:
var x = false;
var s = x ? "yes" : "no";
console.log(s); //→ "no"
:pencil: read more about js ternary on the FCC Wiki