Go vs JavaScript
Pick an idea (variable, loop, list, error...) and see the JavaScript and the Go side by side.
You already know JavaScript, so Go is a second way to write the same ideas. Go is compiled and statically typed: every variable has a type that is fixed, and the compiler checks the whole program before it runs.
Each pair shows the same small program in both languages, with a sentence about the one difference that matters most.
Things to try
- Open A wrong type. Why does the Go version never get to run?
- Compare A counted loop in both languages. What is missing around the condition in Go?
- Look at Something can fail. Where does the error go in Go, and where does it go in JavaScript?
- Which pair has the biggest difference between the two languages, and why?