var a;
switch(a)
{
case 0:
alert('0');
break;
case null:
alert('null');
break;
case undefined:
alert('undefined');
break;
default:
alert('something else');
}
in the console is showing undefined but is pop the box with the "something else ", please be more specified the question
2017 Dec 15, 8:49:21 PM
@mrameshkumarc21 'something else' is an `alert`, that you can see in a pop-up. But in console will be 'undefined'
2017 Dec 6, 10:08:41 AM
i just pasted this code in console (chrome browser), answer is "something else"
2017 Oct 11, 5:50:24 AM
@alexdykyi62, we have checked answer! and the right answer still 'undefined'
2016 Jan 20, 5:16:05 PM
Login in to like
Login in to comment