Difference between using `const` and `function` to declare a function
I am relatively new to JavaScript and in my time learning I have noticed that people decalare their functions/components using
E.g. Using function
And using const:
What are the differences between the two and why would I use one over the other? Thanks
const and also function.E.g. Using function
And using const:
What are the differences between the two and why would I use one over the other? Thanks
