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
  • 13,671
  • 10
  • 44
  • 76
Bhaskar Melkani
  • 333
  • 2
  • 12

0 Answers0