Can we assign a function declaration to a variable in javascript like we do for function expression?
What I learned is there are three ways function can be defined : a) Function Declaration b) Function Expression c) Arrow Function Function Expression and arrow function can be simply defined and assigned to a variable but we cant do…