What is a Syntax?

A syntax is just a grammatical order or arrangement of words in a sentence. It’s a study of rules for constructing acceptable sentences. In computer language if you receive a syntax error, it means you didn’t enter a command in it’s correct order.