Clearly Javascript

DHEERAJ KUMAR
Jan 23, 2021

one

write a code for the following function input: Sum(5)(8) output: 13

function sum(a) {

function inner(b){

return a+b;

}

return inner;

}

console.log(sum(5)(8))

--

--

DHEERAJ KUMAR

.Net Core Expert and an Experienced Full Stack Engineer (nodejs+Angular 9) with a demonstrated history of working in the product development software company.