May 9th, 2017
Data binding refers to the process that is used for establishing a connection between the application UI and business logic. The Two-way data binding point towards the ability of binding changes with an object’s properties to changes in the UI and vice-versa. It means if we have a user object with a name property, when we assign a new value to user.name the UI will display the new name. Similarly, if an input field is included in UI for the username then the entering of value will result in a change in the name property of the user object.
(more…)
May 8th, 2017
Method getTime() returns the total number of milliseconds between midnight of January 1, 1970 and the date specified by you. The often requirement to calculate with unix timestamp.
May 2nd, 2017
The push() method is used for adding one or more elements at the end of an array and returns the new length of the array. In order to add items at beginning of the array unshift() method is used. It can be used with call() or apply() with objects that are similar to arrays. The push method applies the length property to identify pint of inserting the given values. When the length property is not converted into a number 0 is used as index. This considers the possibility of length being nonexistent hence in such scenario length will be created.