1

const show1 = function(x, y = () => {x = 2; return x;}) {
    console.log(y());
    console.log(x);
};

how does this code work?

what does this thing do ? function(x, y = () => {x = 2; return x;}) {

its just for improve coding knowledge and nothing else :)

Selva Ganapathi
  • 660
  • 5
  • 17

0 Answers0