single line if statement javascript assignment 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");