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: 
Use brackets, and add `name ==` in your second comparison condition, As I put first in comment this is the appropriated code

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

```

Hope this helps
Except for brackets, you can also use array.contains for cases with a lot of names that could make the bracket code long and unreadable.

```
let name = "Three"
let nameList = ["One", "Two", "Three", "John", "Jack", "Vlatko"]
let surname = ["John", "Jack"].contains(name) ? "Johnson" : "Smith"
let surnameAlternate = nameList.contains(name) ? "Johnson" : "Smith"

```