Sobes.tech
Junior — Senior

What output will the program produce in the console (option 6)

livecode

Task condition

The text printed in the console after running the following program will be:

OK, next

This is because the comparison 'err == errors.New(errMsg)' always evaluates to false, as errors.New creates a new error instance each time, so the switch case does not match, and the program does not print anything.