In his article Declarative vs. Imperative Programming for the Web visual content designer and self-described former engineer Pascal Cremer does a nice job at explaining the differences between these two common programming paradigms and how declarative programming can lead to much more concise, comprehensible and readable code.
He provides examples from a web context and shows how declarative programming lends itself to being used in a functional reactive programming style, which has become very popular with frameworks such as RxJS.