how to have multiple object to be displayed using ternary operator javascript code example
Example: multiple ternary operator javascript
var icon = (area == 1) ? icon1 : (area == 2) ? icon2 : icon0;
var icon = (area == 1) ? icon1 : (area == 2) ? icon2 : icon0;