console.log(addB(10, 15));
function addB(a, b) {
return a + b;
}
console.log(addC(10, 15));
const addC = (a, b) => {
return a + b;
};
Just convert function to arrow function. why get "Cannot access 'addC' before initialization" error .. affter that function line I call it its working. what is the limitation to use arrow function