Skip to content

IdanHerman12/city-trivia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

city-trivia

Write a functions that plays city trivia: function guessCity(capital, coastal, famous, ancient) { // your code goes here } The arguments are all true or false. The return value is the name of the city. Jerusalem is ancient, famous and a capital Tel Aviv is famous and coastal Acre is coastal and ancient Katzrin is ancient Zikim is coastal Musmus is not any of the above For example, guessCity(false, true, true, false) returns "Tel Aviv". No other cities are recognized.

About

Write a functions that plays city trivia: function guessCity(capital, coastal, famous, ancient) { // your code goes here } The arguments are all true or false. The return value is the name of the city. Jerusalem is ancient, famous and a capital Tel Aviv is famous and coastal Acre is coastal and ancient Katzrin is ancient Zikim is coastal Musmus …

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors