Challenge: Comments in Go
Task
Comment out the statement that should be shown and uncomment the statement that needs to be shown in the following code.
index.go
1234567package main import "fmt" func main() { fmt.Println("This sentence should not be outputted") //fmt.Println("This sentence should be outputted") }
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 9
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Can you explain why one statement should be shown and the other commented out?
Can you show me the expected output of the code?
Can you help me understand how commenting works in Go?
Awesome!
Completion rate improved to 1.96
Challenge: Comments in Go
Svep för att visa menyn
Task
Comment out the statement that should be shown and uncomment the statement that needs to be shown in the following code.
index.go
1234567package main import "fmt" func main() { fmt.Println("This sentence should not be outputted") //fmt.Println("This sentence should be outputted") }
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 9