What's the interpreter language?
An interpreter languages reads your code line by line, then converts it to machine code then executes it immediately.
Example: Consider it as a translator who translates a storyline line-by-line; that's an interpreter of language.
pros | cons | |
---|---|---|
faster testing, debugging, and development | slower performance | |
easy to run and easy to play with | Errors show up only when that line runs |
What's the compiled language?
Compiled languages convert your code into machine code first, then runs it.
Example: Consider it as a translator who reads the whole story first, then gives you a full Hindi version.
pros | cons |
---|---|
fast performance | slower development process |
Catches many errors before running |