1
<script>
2
var t1 = "";
3
var t2;
4
if (t1 === undefined) {
5
alert("t1 is undefined");
6
}
7
if (t2 === undefined) {
8
alert("t2 is undefined");
9
}
10
</script>
<script>
var t1 = "";
var t2;
if (t1 === undefined) {
alert("t1 is undefined");
}
if (t2 === undefined) {
alert("t2 is undefined");
}
</script>