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
  • 14,912
  • 10
  • 47
  • 79
Bhaskar Melkani
  • 333
  • 1
  • 2
  • 12

0 Answers0