Declarative programming is when you write your code in such a way that it describes what you want to do, and not how you want to do it . It is left up to the compiler to figure out the how. Examples of declarative programming languages are SQL and Prolog.
Read more