Compiler error (418858)

Starting with importing models and placing them in a space is easy but scripting seems to be quite weird even knowing java and javascript
Here I try to have a script using the mouse to trigger an event and here is the error I get?
What is weird is that there is a semi colon at the end as needed?

Assets/Standard Assets/Scripts/MousOver_Link.js(7,5): UCE0001: ‘;’ expected. Insert a semicolon at the end.

Sometimes the scripts dont update properly, to solve remove the script from the object, run the game, fix any error, then add again.

You’ll notice that when running unattached to an object the errors that come up will be correct.

If this is not the problem, then consider also that the line reported is not always the one that it is on. I believe this is because what you see on the screen has some gaps in it and the compiled version does not. The solution is to check for missing ; in other areas.

The other possibility is that you have a for… loop where you have added ; at the end. For should not have a ; at the end.

So consider that it may be an extra instance of ; on another line causing the problem, rather than a lack of ;.

Example

for(x=1; x<100; x++) ;
{
do something;
}

The error here may say missing ;, however its actually an extra ; because the code should actually read

for(x=1; x<100; x++)
{
do something;
}

BTW you should really include your code so we can hep you more.