<html><head> <script language="javascript"> var a = 0; var b = 5; var c = a||b; window.alert(c); a = false; b = true; c = a||b; window.alert(c); a = 0; b = ""; c = NaN; d = false; e = undefined; f = a||b||c||d||e; window.alert(f); a = false; b = new Object(); c = a||b; window.alert(c + typeof c); </script></head><body></body></html>运行结果为: