The above code uses the ternary operator to set the background color to green if the persons country is the UK else red. But the expression doesn't have to be ...
確定! 回上一頁