Difference between Syntax error and Runtime error.
A syntax error is caught by the compiler or interpreter and it's incorrect use of the language itself.
Whereas a runtime error is a problem that cannot be detected before the code runs but causes an issue that is caught during the program run.