Challenge: Constants
Task
Declare and initialize a constant called myConst
with a value of 17
.
index.go
1234567package main import "fmt" func main() { ___ fmt.Println(myConst) // Should output 17 }
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 11
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
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
Challenge: Constants
Pyyhkäise näyttääksesi valikon
Task
Declare and initialize a constant called myConst
with a value of 17
.
index.go
1234567package main import "fmt" func main() { ___ fmt.Println(myConst) // Should output 17 }
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 11