Something to know about closure
//Closures are interesting !! function Closures=(x)=>{ return function(y){ return x+y; } } console.log(Closures(3)(4)) // 7
dont knmow
7 is the answer
7 is the answer
7
7
7
Yes i know 7
7
7
The answer is 7
It should give SyntaxError: Unexpected token '=', because, in line:2, there's err of arrow function
7
7 is the answer
7
7 is the output
syntax Error : Unexpected token '='
SyntexError
closure function is supposed to be self function. so it can be written as
closure function to be defined by self invoking
dont knmow