“Debugging is twice as hard as writing the code in the first place.
No matter your skill level or experience, anyone that writes and deals with computer code will experience coding errors, from time to time.
Coding errors could take the form of typos, flawed logic, or an accidental oversight. and here are the types of coding errors.
Syntax error
A syntax error is akin to a spelling error, grammar error or basic typo. It’s where the code has been typed incorrectly.
Runtime error
Runtime errors (also known as execution errors) are coding errors that show themselves when you or a user tries to run your program. Essentially, a runtime coding error is when something has confused the computer and caused it to crash.
Logic error
The hardest type of coding error to locate and fix is the logic error. With logic errors, there are no crashes or helpful highlighting to point out the problem. Instead, the program runs successfully. But it doesn’t do what you wanted it to do