Posts Tagged ‘instanceof’

Testing code and handling errors in JavaScript

Debug it! In this article we will take a look on testing the code and error handling in JavaScript. Handling errors in JavaScript At the beginning would have to say a few words about the need for testing. We need to test everything! Preferably at each stage of creating the code. And we must take […]

Date and time in JavaScript

The time flies, and we will write about date and time in JavaScript. Today less theory, more practical examples. Date and time in JavaScript. The Date object. To handle dates in JavaScript there is an object called Date. Basic example: The Date object — methods Methods of the Date object: Tip: use instanceof With this […]