Bug at your risk.


Photo by Sai Kiran Anagani on Unsplash

During one of the tasks to find bugs on the website given to us for the HNG 2019 internship, guess what i founddddd(No, not that), your boy found a proteinous tasty bug in the js file for timbu.com!!!.

To be honest with you, i didn’t think i would ever find one due to websites like that being created by gods in the form of men, yikes but i did…we mere mortals are just a thorn in the side of gods aren’t we?.

Now you might be wondering what is the name of the bug i found through all this suspense i’ve been secretly developing, well it’s called drum-roll.

TypeError: window.intlTelInput is not a function

Gotcha!

Firstly what is a typeError, a typeError can be said to be or represents an error when a value gotten is not what was expected. so in our case the type error referred to International-telephone-input in which the value it was expecting being a phone number was being called before the whole document(The html and colleagues) were ready to get values.

So a possible solution to that would be to add a js or jquery function that checks if the page has been loaded thereafter, the function can run.

Thanks for coming to my Ted Talk 🙂


Leave a comment