Using LOAD CSV for Import - Introduction to Neo4j 4.x Series

I am trying to do the steps in the mentioned URL but am getting the below error:
Neo.ClientError.Statement.SyntaxError: Invalid input 'O': expected whitespace, comment, IF or FOR (line 1, column 30 (offset: 29))
"CREATE INDEX MovieTitleIndex ON (m:Movie) FOR (m.title)"
Can someone please guide me?

what version of Neo4j.
If 4.2 the correct syntax is

CREATE INDEX MovieTitleIndex FOR (n:Movie)
ON (n.title);