Created by: tanvirstreame
Instead of checking typeof undefined , we can check with the actual value instead