Question: How can I use OR in a ternary operator? Here's what I'm trying to do:

`let surname = name == "John" || "Jack" ? "Johnson" : "Smith"`

Answer: 
Alternatively

```
let surname = ["John", "Jack"].contains(name) ? "Johnson" : "Smith"

```
Please be aware of **Operator precedence**

You should use brackets to form valid condition.

```
let surname = (name == "John" ||  name ==  "Jack") ? "Johnson" : "Smith"

```