DEV Community

Discussion on: Golang for JavaScript developers - Part 1

 
vinceramces profile image
Vince Ramces Oliveros

val is no longer accessible after the if statement. the variable is scoped to the if block