logic error
an error in the way a program works
program can run but does not do what it is expected to do
Syntax error
when rules of the coding language have been broken
the program will not run because the code is literally wrong
this can happen because
variables have not been declared or initialised before any type of function which uses them