DEV Community

Discussion on: Explain the difference between compiler and interpreter like I'm five

Collapse
 
dfockler profile image
Dan Fockler

A compiler is like baking a cake. You do all the steps to make the cake, and then finally you bake it into some delicious treat.

An interpreter is like making a salad. You do all the steps and when you've finished them you've made a salad.