Category JavaScript

Window Object in JavaScript

JavaScript Window object hierarchy

Window object in JavaScript is the top of the BOM hierarchy. It is a parent of all objects that we create, both directly through JavaScript and indirectly via DOM. A window object simply represents a web browser window (or frame…

How to Create Object in JavaScript

In this example, we will learn how to create an object in JavaScript with the help of examples. An object in JavaScript is the template by which we can make an instance. JavaScript is template based programming language, not class…

JavaScript Date Object

Date object in JavaScript is a built-in object that allows us to work with dates and times conveniently. Using Date object, we can find out the current data and time, store own dates and times, perform calculations with these dates…

JavaScript Number Object

The Number object in JavaScript is a wrapper object around a primitive numeric value. It enables you to represent any kind of numerical data, including integer or floating-point numbers. JavaScript number object follows the IEEE standard of 64-bit to represent…

JavaScript Math Object

Math in JavaScript is a top-level, pre-defined object that has properties and methods for mathematical constants and functions. For example, Math object’s PI property contains the value of pi. The properties of Math object represent mathematical constants and its methods…