Creating a local variable

Report a typo

Tyler Joseph from the famous rap/rock band "Twenty One Pilots" has started learning about the scope of variables in Go.

He needs to create the local variable fairlyLocal of the string type within the main() function. Can you help him out?

Write a program in Go
package main

import "fmt"

func main() {
? // create the local variable 'fairlyLocal' of the string type here!

fmt.Println(solve(fairlyLocal)) // DO NOT delete or modify this line!
}
___

Create a free account to access the full topic