Difference between Procedural and Declarative Knowledge

Procedural Knowledge:
Procedural Knowledge also known as Interpretive knowledge, is the type of knowledge in which it clarifies how a particular thing can be accomplished. It is not so popular because it is generally not used.
It emphasize how to do something to solve a given problem.
Let’s see it with an example:

var a=[1, 2, 3, 4, 5];
var b=[];
for(var i=0;i<a.length;i++)
{
  b.push(a[i]);
}
console.log(b); 

Output is:

[1, 2, 3, 4, 5]

Declarative Knowledge:
Declarative Knowledge also known as Descriptive knowledge, is the type of knowledge which tells the basic knowledge about something and it is more popular than Procedural Knowledge.
It emphasize what to do something to solve a given problem.
Let’s see it with an example:



var a=[1, 2, 3, 4, 5];
var b=a.map(function(number)
{
 return number*1});
console.log(b);

Output is:

[1, 2, 3, 4, 5]

In both example we can see that the output of a given problem is same because the only difference in that two methods to achieve the output or solution of problem.

Difference the Procedural and Declarative Knowledge:

S.NO Procedural Knowledge Declarative Knowledge
1. It is also known as Interpretive knowledge. It is also known as Descriptive knowledge.
2. Procedural Knowledge means how a particular thing can be accomplished. While Declarative Knowledge means basic knowledge about something.
3. Procedural Knowledge is generally not used means it is not more popular. Declarative Knowledge is more popular.
4. Procedural Knowledge can’t be easily communicate. Declarative Knowledge can be easily communicate.
5. Procedural Knowledge is generally process oriented in nature. Declarative Knowledge is data oriented in nature.
6. In Procedural Knowledge debugging and validation is not easy. In Declarative Knowledge debugging and validation is easy.



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.