js are single line if statements okay? code example
Example: if statement javascript one line ?
(lemons) ? alert("please give me a lemonade") : alert("then give me a beer");
(lemons) ? alert("please give me a lemonade") : alert("then give me a beer");