-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcityTrivia.js
More file actions
9 lines (9 loc) · 763 Bytes
/
cityTrivia.js
File metadata and controls
9 lines (9 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
function guessCity(capital, coastal, famous, ancient) {
if (capital === true && coastal === false && famous === true && ancient === true){return "Jerusalem"}
else if (capital === false && coastal === true && famous === true && ancient === false){return "Tel Aviv"}
else if (capital === false && coastal === true && famous === false && ancient === true){return "acre"}
else if (capital === false && coastal === false && famous === false && ancient === true){return "Katzrin"}
else if (capital === false && coastal === true && famous === false && ancient === false){return "Zikim"}
else if (capital === false && coastal === false && famous === false && ancient === false){return "Musmus"}
else {return "No other cities are recognized"}
}