w3docs logo

Quiz Javascript Basic - Which is undefined variable?

var1 = '12';
if ( var2 ) {
delete var2;
}
else if ( var1 ) {
delete var1;
}
Do you find this helpful?