In this tutorial, you will learn how to check whether a number is decimal or not in javascript. A number whose whole number part and fraction part is separated by decimal point is known as a decimal number. We have float primitive type to handle decimal numbers in javascript. There are numerous ways to detect
In this tutorial, you will learn how to get unix timestamp in javascript. The Unix timestamp is a total number of seconds that have elapsed since January 1st, 1970 at UTC. The UTC stands for coordinated universal time and it remains the same for everyone no matter where you are in the world. That is
In this tutorial, you will learn how to add and remove readonly attribute in javascript. The readonly attribute makes your input field completely immutable. However, you can still change the text in the input field with the help of javascript. There are specific methods in the javascript to add and remove attributes. The setAttribute() method
In this tutorial, you will learn how to get checkbox value in javascript. If you are having checkboxes in your HTML file, then it is obvious you want to get the value of the selected checkbox and do something with it. I am assuming that you are only going to select one checkbox and get
In this tutorial, you will learn how to append one array to another array in javascript. An array is nothing more than a collection of items and in your project, you can have multiple arrays. Appending one array to another array can be tricky. There are multiple solutions to this problem. A common solution for