Category: Web Development

How To: Format Strings in JavaScript

The majority of modern programming languages offer the possibility to format strings. For example, in Python, you can do the following. [crayon-67d75fc5e72ec069330310/] If you want to do the equivalent in JavaScript, you will have to either create your own string parser, or use Template literals.  To instantiate a Template...

How To: Abort an HTTP Call Using AngularJS

In AngularJS, you use the $http service in order to do HTTP requests. For some reason, you want to be able to cancel some of those requests. For example, you have an HTTP call that takes some time to complete, therefore you offer the user the possibility to cancel...