<script> let myVar; if(typeof myVar === 'un.defined') { console.log('Yes') // output 'Yes' }else{ console.log('No') } </script>
<script> let myVar; if(myVar == null) { console.log('Yes') // output 'Yes' }else{ console.log('No') } </script>
<script> let myVar = ''; if(myVar === '') { console.log('Yes') // output 'Yes' }else{ console.log('No') } </script>
<script> let myVar = [2,3]; if(myVar.length === 0) { console.log('Yes') }else{ console.log('No') //output 'No' } </script>
<script> let myVar = {}; if(Object.keys(myVar).length === 0) { console.log('Yes') // output 'Yes' }else{ console.log('No') } </script>
<script> let myVar = true; if(myVar === false) { console.log('Yes') }else{ console.log('No') // output 'No' } </script>
<script> let myVar = '8'; if(Number.isNaN(myVar)) { console.log('Yes') }else{ console.log('No') // output 'No' } </script>