Skip to content
Quiz · Variables and types · lesson 2 of 10

Quiz — var, const and :=

What happens when this program is built and run?

GO
package main

import "fmt"

const limit = 10

func main() {
    n := 3
    limit = n
    fmt.Println(limit)
}

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