Skip to content

Instantly share code, notes, and snippets.

@juunegreiros
Created October 5, 2021 21:08
Show Gist options
  • Save juunegreiros/e8971b6027713463cd52790c7a67dfe6 to your computer and use it in GitHub Desktop.
Save juunegreiros/e8971b6027713463cd52790c7a67dfe6 to your computer and use it in GitHub Desktop.
Monitoria
const lugares = {
casa: () => console.log('casa'),
escola: () => console.log('escola'),
}
const lugarAtual = 'casa'
lugares[lugarAtual]
if (lugarAtual == 'casa') {
} else if (lugarAtual == 'escola') {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment