Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Constants | Getting Started
Introduction to GoLang

Challenge: ConstantsChallenge: Constants

Task

Declare and initialize a constant called myConst with a value of 17.

go

index.go


package main
import "fmt"
func main() {
    const myConst = 17
    fmt.Println(myConst) // Should output 17
}
      

Tudo estava claro?

Seção 1. Capítulo 11
course content

Conteúdo do Curso

Introduction to GoLang

Challenge: ConstantsChallenge: Constants

Task

Declare and initialize a constant called myConst with a value of 17.

go

index.go


package main
import "fmt"
func main() {
    const myConst = 17
    fmt.Println(myConst) // Should output 17
}
      

Tudo estava claro?

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