Q11. How do you find operating system details?
The window.navigator object contains information about the visitor's browser OS details. Some of the OS properties are available under platform property, ```javascript co...
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 (45 available).
The window.navigator object contains information about the visitor's browser OS details. Some of the OS properties are available under platform property, ```javascript co...
`Native objects` are objects that are part of the JavaScript language defined by the ECMAScript specification. For example, String, Math, RegExp, Object, Function etc cor...
JavaScript is an interpreted language, not a compiled language. An interpreter in the browser reads over the JavaScript code, interprets each line, and runs it. Nowadays ...
The return false statement in event handlers performs the below steps, 1. First it stops the browser's default action or behaviour. 2. It prevents the event from propagat...
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...
When exchanging data between a browser and a server, the data can only be text. Since JSON is text only, it can easily be sent to and from a server, and used as a data fo...
You can use ECMAScript 6's `String.prototype.startsWith()` method to check if a string starts with another string or not. But it is not yet supported in all browsers. Let...
JavaScript provided a trim method on string types to trim any whitespaces present at the beginning or ending of the string. ```javascript " Hello World ".trim(); //Hello ...
A polyfill is a piece of JS code used to provide modern functionality on older browsers that do not natively support it. For example, Silverlight plugin polyfill can be u...
You can use regex which returns a true or false value depending on whether or not the user is browsing with a mobile. ```javascript window.mobilecheck = function () { var...
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.