0

I am beginner in JavaScript and I have a question. What is the difference between these two functions.


const one = function(n){
    console.log(n)

and this arrow function.

const one = (n) => {
    console.log(n)

I know I am storing the value in one variable. But even then I can't find the difference between these

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
Yash
  • 1
  • @Justinas — That's **a** difference. There are plenty of others. The duplicate question has answers which go into a decent amount of depth. – Quentin Jul 24 '23 at 11:14

0 Answers0