1

Check the following cases:-

function x() {
    console.log('x');
};
x(); //outputs x

var y = function () {
    console.log('y');
};
y(); //outputs y

var z = function w() {
    console.log('zw')
};
z(); //outputs zw;
w(); //outputs .. w is not defined.

Can anyone explain me this behaviour..?

Deepak Ingole
  • 12,511
  • 8
  • 40
  • 75
Bhaskar Melkani
  • 334
  • 2
  • 12

0 Answers0