<script type="text/javascript">var objOne = undefined || "" || null || 1 || new Date(); var objTwo = new Date(); var objThree = objOne || objTwo; alert(objOne.toString()); </script>