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 }
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 11
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
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
Swipe to show menu
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 }
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 11