Error handling for JS fetch requests

The following example handles server and connectivity errors for javascript fetch requests. handleErrors can be updated for handling different types of errors in different ways. This function is called whenever we get a response from the server (successful or failed). When we have a different type of error, like a DNS one, the catch block…

Password Requirements Validation with JQuery

Password screens are challenging for users because we often ask them to enter complex strings which most times are not even able to see. Adding to it, these strings have to meet different criteria – like having upper and lower case characters, numbers and so on – to keep our applications secure. In this post,…