It is the idea, model or fundamental style of solving problem using programming language,It porvides the structured approach or set of principle that make the programs to design and implement,
Different programing language uses different paradigm techniques to solve the problem.
A programming language used one or more paradigm , to make an best approach for the project requirement.
There Different Types of paradigm approach,
1. Imperative Paradigm
It will focus on step by step instrcution to machine , should complete the task , we can specify the operation and work flow of control during the execution
let num = [ 1 , 2 , 3 , 4 , 5 ]; let total = 0 ;
for ( i = 0 ; i < num . length ; i ++ ){ total = total + num [ i ]; }
console .…