Videostream Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    What's a syntax error?

    Feature Requests
    3
    3
    53
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sewapol last edited by

      A syntax is a correct way of writing something in a programming language. If you want the computer to understand your command you have to use the correct syntax otherwise it would not recognize it and show a syntax error.

      Just take a simple example:

      Suppose I want to text you that I want a pen drive that belongs to a third person, say RAJ. So the correct way to text would be: “Could you give me Raj's pen drive.”

      Here the apostrophe is important, it's the syntax for telling you that the pen drive belongs to Raj. If I don't use that apostrophe it would be a syntax error.

      1 Reply Last reply Reply Quote 0
      • W
        Wepon last edited by

        Correcting syntax errors is essential in computer programming: a program will not work until the errors are corrected. It is very important to notice and fix SyntaxError: Unexpected reserved word 'await' in time because otherwise, the program cannot understand commands based on the rules of the programming language.

        R 1 Reply Last reply Reply Quote 0
        • R
          Rachel Gomez @Wepon last edited by

          In computer science, a syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming language.
          Certain syntax errors can be as follows:

          -missing semicolons
          -unbalanced parenthesis
          -missing operators
          -indentation
          -error in the structure of the program

          This may help you,
          Rachel Gomez

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors