Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Desafio: Constantes | Começando
Introdução ao Golang

bookDesafio: Constantes

Tarefa

  1. Declare e inicialize uma constante chamada myConst com o valor 17.
index.go

index.go

copy
1234567
package main import "fmt" func main() { ___ fmt.Println(myConst) // Should output 17 }
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 11

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

What does the `const` keyword do in Go?

Can I change the value of `myConst` later in the code?

What happens if I try to assign a new value to `myConst`?

Awesome!

Completion rate improved to 1.96

bookDesafio: Constantes

Deslize para mostrar o menu

Tarefa

  1. Declare e inicialize uma constante chamada myConst com o valor 17.
index.go

index.go

copy
1234567
package main import "fmt" func main() { ___ fmt.Println(myConst) // Should output 17 }
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 11
some-alt