let latitude = getLatitude()
let location = ""
if (latitude === 0) {
location = "Equator"
} else if (latitude === 90) {
location = "north Pole"
} else if (latitude === -90) {
location = "south Pole"
} else {
location = "not at the Equator or Pole"
}
function getLatitude(): number {
return Math.floor(
(Math.random() * 180) + 1) -90
}
console.log(`latitude is ${latitude}`)
console.log(`location is "${location}"`)