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