showing results for - "javascript 1 line if"
Iain
17 Feb 2017
1const condition = true;
2// (condition) ? if : else
3(condition) ? console.log("it is true") : console.log("it is false");
Sebastián
26 Mar 2018
1(lemons) ? alert("please give me a lemonade") : alert("then give me a beer");