Skip to content
Quiz · First program · lesson 3 of 8

Quiz — an unused variable

What happens when this program is built and run?

GO
package main

import "fmt"

func main() {
    x := 5
    fmt.Println("hi")
}

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way