A compilation of syntax similarities / differences between JavaScript and Go.
Prints the numbers 1-10.
- In Go:
go run ./for_loop
- In NodeJS:
node ./for_loop
Maps an array
- In Go:
go run ./map
- In NodeJS:
node ./map
Filters an array
- In Go:
go run ./filter
- In NodeJS:
node ./filter