The following demo is developed to demonstrate the usage of the to be explained audio recording API that can be used in your website.
In the code demo, you will be able to:
In order to ensure that time in an instance is accurate, the Network Time Protocol is very crucial. But, what exactly is the Network Time Protocol?
On the internet, atomic clocks are maintained to give very very very accurate UTC time. UTC time, also known as GMT, is the primary time standard. The idea of this protocol is to communicate this accurate UTC time to whoever needs it.
So, a system or an instance will communicate with a time source to get that accurate time that is originally obtained from the atomic clock available online. …
As a front-end developer, you may come across several use cases where you need to display the elapsed time dynamically. For example, you may need to display the elapsed time in a call interface or you may want to develop a stopwatch feature in your website. Therefore, having a reliable function that you can simply revisit and reuse would be, to simply put it, a life saver. So, I’m here to save your life.
This post helps form a good understanding on what Swagger Specification is and how to use it to your benefit in API design.
Using the Jasmine framework, I have wrote several unit tests. Those tests tested different function outputs. In certain cases, the function output was a boolean value. Looking for the proper test function from Jasmine, I stumbled upon not one, not two but three functions that seemed really appropriate.
At first glance, those three functions, which are toBe(true), toBeTrue() and toBeTruthy(), seem like they do the exact same thing, don’t they? But the question is do they really do the same thing? …
Hopefully this can help you save a lot of time and make date & time manipulation easier for you. You can even use these functions as a starting point to create other general-purpose or custom functions.
Do you ever find yourself in need of a basic string function but just can’t find a built-in function that does the job for you? Do you always end up surfing the web, stackoverflow page after the other, until you form a solid function that does the trick for you 101 years later? Look no further as I’m here to save your life.
For Example, have you…
Are you trying to add the drag & drop functionality to your website, but you don’t know exactly how to do it? Well, worry not, this story explains all you need to know to get you started.
To be able to drag & drop HTML elements or just drop files in your website, the following steps will be your best friend. Well, until you add the feature to your website. Then, it will be bye bye friendship.
Just note that the steps are based on the HTML drag & drop API explained in MDN web docs.
Do you want to spice up your website by adding your own custom keyboard shortcuts? If yes, then this is the post for you.
To add custom keyboard shortcuts, you will have to keep track of the clicked-on keyboard keys to track down when a desired combination is clicked.
The steps to achieve this are pretty simple.
That is done by saving the clicked status for each key. This means setting the status to true when a key is clicked down and setting it to false false on the release of the key.
In order to achieve this in code…