Q11. What is BOM?
The Browser Object Model (BOM) allows JavaScript to "talk to" the browser. It consists of the objects navigator, history, screen, location and document which are children...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (79 available).
The Browser Object Model (BOM) allows JavaScript to "talk to" the browser. It consists of the objects navigator, history, screen, location and document which are children...
JSON (JavaScript Object Notation) is a lightweight format that is used for data interchanging. It is based on a subset of JavaScript language in the way objects are built...
Below are the list of syntax rules of JSON 1. The data is in name/value pairs 2. The data is separated by commas 3. Curly braces hold objects 4. Square brackets hold arra...
You need to use date.getTime() method in order to compare unix timestamp values ```javascript var d1 = new Date(); var d2 = new Date(d1); console.log(d1.getTime() === d2....
Yes, we can define properties for functions because functions are also objects. ```javascript fn = function (x) { //Function code goes here }; fn.name = "John"; fn.profil...
It is recommended to avoid creating new objects using `new Object()`. Instead you can initialize values based on it's type to create the objects. 1. Assign {} instead of ...
JSON arrays are written inside square brackets and arrays contain javascript objects. For example, the JSON array of users would be as below, ```javascript "users":[ {"fi...
You can use innerWidth, innerHeight, clientWidth, clientHeight properties of windows, document element and document body objects to find the size of a window. Let's use a...
Below are the main benefits of using freeze method, 1. It is used for freezing objects and arrays. 2. It is used to make an object immutable.
Spread operator allows iterables( arrays / objects / strings ) to be expanded into single arguments/elements. Let's take an example to see this behavior, ```javascript fu...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.