It will preserve the formatting, so it’s easier for people to read. Also, it will show the line numbers so that people can find the line that is specified in the error message.
In your case, it looks like there are missing semicolons at the end of some of your variable declarations.
Go back through that tutorial again and compare exactly what you have typed to what is in the tutorial - you should see all the mistakes that you have made. You have to be exact in what you are typing, especially around spelling and capitalisation.
Right. Also the error says it is expecting a semicolon somewhere. Sometimes the error can be misleading. However if the error tells you that you may be missing a semicolon somewhere, you may search for semicolons on the source / reference code of the tutorial and see if you have all those semicolons as well. I can already tell, the answer is no for at least two cases