// listingId = '', 0, null, undefined, false
//let listingId
if (typeof listingId === 'undefined')
console.log('listingId is undefined')
else
console.log(listingId)
if (!!listingId)
console.log(listingId)
else
console.log('listingId does not found')
if (listingId)
console.log(listingId)
else
console.log('listingId does not found')
if (listingId === undefined)
console.log('listingId does not found')
else
console.log(listingId)
Comments
Post a Comment