Difference Between Imperative approach vs Declarative Approach

Declarative and imperative programming are two common programming paradigms.

Declarative Approach

A declarative approach would provide the address of the destination without concern about how it's found.(or without describing its control flow).

Imperative Approach

An imperative approach would provide step-by-step instructions on how to arrive at a given destination.

After getting the basics of understanding of both the languages now let u do discuss the key differences between these two different types of programming

Imperative Programming

Declarative Programming  

In this it tells how to make it done. In this it tells what it to be done
It provide full control flow along with step by step instruction It just provide destination without concern how to make it.
It provides greater flexibility. It provide less flexibility




Categories: Java Script Tags: #ES6,

Newsletter Subcribe

Receive updates and latest news direct from our team. Simply enter your email.