Fun fact about coding btw: there are 3 types of general errors in coding.
A syntax error means there is bad language in your code like a typo. Or, you used a word in your code the wrong way. It will NOT run at all.
A runtime error means your code has good language! But when you run it, it gives you bad errors.
A logic error means your code works perfectly fine! But it does not give you the result you want. Kind of like making a code that does 1+1 but it gives you 3. It is usually the hardest error to fix.
Semantic error is runtime error and logic error since your code can still run but its still pretty bad
Fun fact about coding btw: there are 3 types of general errors in coding.
A syntax error means there is bad language in your code like a typo. Or, you used a word in your code the wrong way. It will NOT run at all.
A runtime error means your code has good language! But when you run it, it gives you bad errors.
A logic error means your code works perfectly fine! But it does not give you the result you want. Kind of like making a code that does 1+1 but it gives you 3. It is usually the hardest error to fix.
Semantic error is runtime error and logic error since your code can still run but its still pretty bad
(⌒▽⌒)