After updating the WordPress getting a syntax error in the console

The second line in your screenshot, the first Red line, is showing a typo in a Javascript file called common.min.js.

If you have a plugin that minifies your javascript (Typically a cache or optimisation plugin) on your site, try turning that off.

Failing that, try swapping to the default theme, then if you’re still seeing the issue, turn off plugins one by one until the problem disappears.

When you have found the issue, contact the theme or plugin developers and report the issue. They will hopefully provide a fix.