So what do you do next? You could double-check and see if you missed adding a semicolon at the end of a line. You could perform the classic occult coding ritual of running the script a few more times and hoping that it’ll just work. You could give up entirely and pour yourself a drink.
Or maybe you do what is now the standard troubleshooting method across the profession: You paste the error message into Google and search for it, crossing your fingers in hopes that a website called “Stack Overflow” will come up in the results.