Basic JavaScript syntax-type question which consists of different types of syntax of functions
const onClickButton = (color) => { } const onClickButton = (color) => () => { } Can anyone please tell the basic difference between these 2 functions? I was making a very simple page on which,on clicking a particular button,the…