Q681. What are the built-in iterables?
Below are the list of built-in iterables in javascript, 1. Arrays and TypedArrays 2. Strings: Iterate over each character or Unicode code-points 3. Maps: iterate over its...
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 (780 available).
Below are the list of built-in iterables in javascript, 1. Arrays and TypedArrays 2. Strings: Iterate over each character or Unicode code-points 3. Maps: iterate over its...
Both for...in and for...of statements iterate over js data structures. The only difference is over what they iterate: 1. for..in iterates over all enumerable property key...
The Instance properties must be defined inside of class methods. For example, name and age properties defined inside constructor as below, ```javascript class Person { co...
1. **isNaN**: The global function `isNaN` converts the argument to a Number and returns true if the resulting value is NaN. 2. **Number.isNaN**: This method does not conv...
Immediately Invoked Function Expressions(IIFE) requires a pair of parenthesis to wrap the function which contains set of statements. ```js (function (dt) { console.log(dt...
You might have seen expressions used in switch condition but it is also possible to use for switch cases by assigning true value for the switch condition. Let's see the w...
The easiest and safest way to ignore promise errors is void that error. This approach is ESLint friendly too. ```js await promise.catch((e) => void e); ```
You can add CSS styling to the console output using the CSS format content specifier %c. The console string message can be appended after the specifier and CSS style in a...
It is a logical operator that returns its right-hand side operand when its left-hand side operand is null or undefined, and otherwise returns its left-hand side operand. ...
The `console.group()` can be used to group related log messages to be able to easily read the logs and use console.groupEnd()to close the group. Along with this, you can ...
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.