Declarative programming is more like what you do, or something. Imperative programming is like how you dome something. Declartive programming can be context-independent.

References

  • https://tylermcginnis.com/imperative-vs-declarative-programming/