In the script view, you must make sure to add a semicolon between each script command.
⇑ Translate the sentence above by Google ⇑
Related: semicolon
Prev: If you want to use multiple attributes, separate them with a semicolon.
Next: Two more reasons: no semicolons and no casting required.