Cannot load validateLab1

I managed to get mongo to no longer tell me it can’t find the file, but now it won’t load the file.

it says:

2019-01-15T15:03:19.315+0200 E QUERY [thread1] SyntaxError: missing ; before statement :
@(shell):1:1

2019-01-15T15:03:19.315+0200 E QUERY [thread1] Error: error loading js file: validateLab1.js :
@(shell):1:1

I am on Mac

It seems it had something to do with the shell version, though | have no idea how to update the shell. I did it on another computer that I have mongo running on.

This worked for me:

-download and open the validateLab1.js file with a text editor.
-copy the content.
-paste into mongo shell.

-run validateLab1() according to instructions.