Skip to main content

207 docs tagged with "interview questions"

View All Tags

Abstract Factory - Design Pattern

The abstract factory pattern is a creational design pattern that produces families of related objects without specifying their concrete classes.

Adapter Design Pattern

Adapter is a structural design pattern that facilitates the collaboration of objects having conflicting interfaces.

Alternation (OR) |

Alternation is the term in regular expression that is a simple “OR”. In a regular expression an “OR” is denoted with a vertical line character. Questions

Anchors

Anchors in regex are used to match the start and end of a string. They are used to match the start and end of a string.

ArrayBuffer, Binary Arrays

ArrayBuffer, Binary Arrays are used to store binary data. They are used in the browser to store images, videos, sounds, etc. They are also used in the browser to store binary data.

Async Iteration and Generators

Async Iteration and Generators are a way to create iterators in JavaScript. What are some popular applications for asynchronous iteration in JavaScript?

Async/Await

Async/Await is a way to handle asynchronous operations in a synchronous manner. An async function is a function declared with the async keyword. Questions

Attributes / Properties

Attributes / Properties are properties of an HTML tag. They are used to add information to the tag and to control the behavior of the tag. Interview Questions

Automated Testing in JavaScript

Automated testing is a key part of the JavaScript ecosystem. It is a process that allows you to test your code without having to write a lot of code.

Backreference Pattern

A backreference in a regular expression identifies a previously matched group and looks for the same text again. Regular Expressions Interview Questions

Basic JavaScript Interview Questions

Basic JavaScript Questions | Frontend Developer Interview Questions - What is JavaScript? JavaScript is an interpreted language, V8 compiles it to machine code.

Bezier Curve

Bezier Curve is used to draw curves in JavaScript. Bezier curves are used in computer graphics to draw shapes. - JavaScript Interview Questions and Answers.

BigInt in JavaScript

BigInt is a new type of number in JavaScript. They are used to represent integers that are bigger than the max safe integer. - Frontend Interview Questions

Binary Data / Files

Binary Data / Files - The binary data files are used to store the data in the form of bytes.

Blob Data

Blob Data is a built-in object that allows you to create a Blob object. It is used in the browser to create a Blob object from an array of bytes.

Bridge Design Pattern

The bridge pattern is a structural pattern used in web development to decouple an abstraction from its implementation so that the two can vary independently.

Browser Default Actions

Several events automatically cause the browser to do particular actions by default. These are called default browser actions. Interview Questions

Browser Environment Specification

Browser Environment Specification is a set of specifications that describe the environment in which a web browser runs. - JavaScript Interview Questions

Browser Events

Browser Events are the events that occur in the browser. They are used to interact with the browser. - JavaScript Interview Questions & Answers

Bubbling and Capturing - Events

Bubbling and Capturing Events in JavaScript - The bubbling-up principle is self-explanatory based on its name. - JavaScript Interview Questions & Answers

Builder Design Pattern

It lets you build complex objects step by step. The builder pattern allows you to produce different object types and representations using the same builder code.

Callbacks

Callbacks are a way to pass functions as arguments to other functions, and to return them as the result of the function. Pass your next frontend phone interview

Capturing Groups

A capturing group is a pattern enclosed in parentheses. It two affects consisting of getting part of match as a separate or isolated item in an array of items.

Catastrophic Backtracking

Catastrophic backtracking is a condition that can occur if you are checking a (usually long) string against a complex regular expression.

Chain of Responsibility Pattern

The chain of responsibility pattern allows a client request to be received by multiple objects. JavaScript Frontend Phone Interview Question

Character Classes

Character Classes are used to match text against regular expressions. A character class is a special notation that matches any symbol from a set. Questions

Class Checking "instanceof"

Class Checking instanceof is the syntax for checking if an object is an instance of a class. The instanceof allows us to check if an object belongs to a class.

Class Inheritance

Class Inheritance in JavaScript is a syntax for creating a class in JavaScript. What is the extends keyword used in JavaScript classes? Interview Questions

Clickjacking Attacks

Clickjacking Attacks is the process of a malicious site trying to trick a user into clicking on a link that is on another site.

Command Design Pattern

Command Pattern is a behavioral JS design pattern that aims to encapsulate actions or operations as objects. JavaScript Frontend Phone Interview Questions

Composite Design Pattern

The composite is a structural pattern that composes objects into trees and then works with these structures as if they were individual objects.

Constructor Design Pattern

The constructor pattern is a class or function-based pattern used in the creation of specific types of objects. JavaScript interview questions and answers.

Cookies - document.cookie

Cookies - document.cookie - JavaScript Interview Questions and Answers Cookies are tiny data strings saved directly in the browser. Frontend Developer Questions

Cross-Origin Requests

Cross-Origin Requests uses the CORS (Cross-Origin Resource Sharing) protocol to allow web applications to access resources from other domains.

Cross-Window Communication

Cross-Window Communication in JavaScript is a way to communicate between different windows. - JavaScript Interview Questions & Answers

CSS-Animations

CSS-Animations is used to animate elements. CSS animations make it possible to do simple animations without JavaScript. - JavaScript Interview Questions

Currying in JavaScript

Currying is a technique that allows us to create functions that take multiple arguments. JavaScript Interview Questions & Answers

Custom Elements

Custom Elements in JavaScript web development are used to create reusable components. - JavaScript Interview Questions and Answers

Custom Error Handling

Custom Error Handling in JavaScript is a good way to handle errors in your code. How would you extend beyond the initial inheritance of the Error object?

Date and Time

JavaScript dates and times are represented by the Date object. Date objects represent a single moment in time in a platform-independent format. Interview Answer

Debugging JavaScript in Chrome

Explain what debugging is in JavaScript development? Debugging is finding and fixing errors within a script, module, or application with tools in Chrome.

Decorator Design Pattern

The decorator pattern is a JS structural pattern that promotes code reusability. They, like Mixins, can be viewed as a replacement for object sub-classing.

Decorators and forwarding, call/apply

The difference of call and apply is what they accept as args; call expects all parameters to passed individually, whereas apply expects an array of parameters.

Defining a Pattern

Pattern-ity Testing, Proto-Patterns & The Rule Of Three - A pattern that has not yet passed "pattern"-ity tests is called a proto-pattern.

Destructuring assignment in JavaScript

Destructuring assignment is a JavaScript expression that allows us to extract data from arrays, or object properties, and assign them to variables. Interviewer

Dispatching Custom Events

Dispatching Custom Events in JavaScript - The Event() constructor creates a new Event. - JavaScript Interview Questions & Answers

DOM Tree

DOM Tree is a tree structure that represents the structure of the HTML DOM. - JavaScript Interview Questions & Answers

Dynamic Imports

Dynamic Imports in JavaScript ES6 Modules - We can implement dynamic imports by using the import expression. Frontend Developer Interview Questions

Error Handling in JavaScript

Error Handling in JavaScript is a very important part of any web application. The try…catch construct has two main blocks, try and then catch blocks. Questions

Error Handling with Promises

Promises Chaining is a way to chain promises together. How is error handling achieved with promises in JavaScript? Pass Your Next Frontend Interview

Escaping Characters

To match a character having special meaning in regex, you need to use a escape sequence prefix with a backslash (\). Regular Expressions Interview Questions

Event Delegation

Event Delegation is a technique that allows you to listen for events on a parent element; then delegate the event to its children. Interview Questions & Answers

Event loop - Microtasks/Macrotasks

Event loop - Microtasks / Macrotasks in JavaScript is a way to run code asynchronously. The event loop is a programming construct - Interview Questions & Answer

Export and Import Modules

JavaScript Export and Import Modules interview questions and answers. We can label any declaration as exported by placing export before it. Interview Answers

Extending built-in classes

Extending built-in classes is a process of creating a new class that inherits from an existing class. Frontend Developer Phone Interview Questions

External Scripts - JavaScript Interview

Learn how to use External Scripts in JavaScript. How do you access external script files in JavaScript development? | Frontend Developer Interview Questions

Facade Design Pattern

The Façade design pattern creates an interface that protects clients from complex functionality in one or more subsystems.

Factory Method - Design Pattern

The factory pattern offers an interface for producing objects in a superclass while allowing subclasses to change the type of objects created.

Fetch - Abort

Fetch - Abort is used to abort a fetch request. In JavaScript, we can use the fetch method to abort a request.

Fetch - Download Progress

Fetch - Download Progress is used to track the progress of a download. How can we track download progress in JavaScript? JavaScript Interview Questions

Fetch API

Fetch API is used to make network requests. It is used to make GET, POST, PUT, DELETE, and PATCH network requests. JavaScript Frontend Phone Interview Questions

Fetch Requests

Fetch Requests are used to make requests to the server. Fetch is a modern browser-based alternative to XMLHttpRequest. JavaScript Interview Questions and Answer

File / FileReader

JavaScript File and FileReader objects are used to read and write files. FileReader objects are used to read the contents of files.

Flyweight Design Pattern

Can you explain the flyweight design pattern? The Flyweight pattern gets classified as a Structural design pattern. JavaScript interview questions.

Focusing - focus/blur

Focusing - focus/blur in JavaScript is an event that occurs when a user focuses on an element. - JavaScript Interview Questions & Answers

Form Events

Form Events in JavaScript are events that occur when a user interacts with a form. The change event triggers when the element has finished changing. - JavaScript Interview Questions & Answers

Form Properties / Methods

Form Properties / Methods in JavaScript are properties and methods that are associated with a form element. - JavaScript Interview Questions & Answers

Form Submit / Events

Form Submit / Events in JavaScript are events that occur when a user interacts with a form. - JavaScript Interview Questions & Answers

FormData Object

FormData Object is used to send data to a server. It is used to send the data in the form of key-value pairs. JavaScript Frontend Phone Interview Questions

Function Binding

Function Binding is a very common interview question. Binding is a process in which a function is bound to a value.

Function object / NFE

All functions in JavaScript are objects. The concept of functions as callable "action objects" is an excellent approach to thinking about them.

Function Prototype

Function Prototype in JavaScript is a property of the function object. It is used to store the function's properties and methods. Interview Answers

Garbage Collection

Garbage collection is a process that removes unused objects from memory. The central concept of memory management in JavaScript is reachability. Interview

Generators

JavaScript generators are a way to create iterators. What is the distinction between a generator and a regular function? Frontend Developer Interview Answers

Greedy / Lazy Quantifiers

By default, quantifiers are Greedy. Greedy quantifiers try to match the longest text that matches given pattern. Regular Expressions Interview Questions

HTML script Tag - JavaScript Interview

The Script tag is used to load JavaScript files. We can use the script tag to insert JS into HTML or import scripts from external sources. Interview Questions

IndexedDB

IndexedDB is a database that is stored in the browser. It is used to store data in the browser. | JavaScript Frontend Phone Interview Questions

Interpreter Design Pattern

The interpreter pattern offers a scripting language that allows end users (developers) to customize their solutions.

Iterable Types

What are iterables in JavaScript? Iterable Types are objects that can be iterated over. Iterable objects are a subset of arrays. Interview Answers

Iterator Pattern

An iterator is a behavioral design pattern that allows you to traverse elements of a collection without revealing its underlying representation.

JavaScript Animations

JavaScript Animations are used to animate elements in JavaScript. The requestAnimationFrame delivers higher-quality animation. - JavaScript Interview Answers

JavaScript Array Methods

Explain the function and syntax of the array splice() method? How do negative array indexes work? Why can’t you use a return statement in a forEach loop?

JavaScript Arrays

What is an array? Arrays are a collection of indexed values that can be accessed by a numerical index. We use arrays to store an collection of values. Frontend

JavaScript Arrow Functions

Arrow Functions are a very common interview question. Arrow functions are a concise way to write anonymous functions.

JavaScript Classes the Basics

Basic Class Syntax in JavaScript is a syntax for creating a class in JavaScript. Classes are a template for creating objects.

JavaScript Code Editors

An IDE is a development environment (code editor) that allows developers to load, save, edit, manage, and delete projects or files written in JavaScript.

JavaScript Manuals & Specifications

Professional JavaScript developers typically refer to ECMA-262 specifications, MDN JavaScript references, and compatibility tables like CanIUse.com.

JavaScript Mixins

JavaScript Mixins is a syntax for creating a mixin in JavaScript. A mixin is a class that is designed to be used as a mixin. Frontend Interview Questions

JavaScript Object Methods

Object Methods are methods that are attached to objects. They can be called on objects. Frontend Phone Interview Questions and Answers

JavaScript Objects

JavaScript Objects are a collection of key-value pairs. They are used to store data. String, Symbol, BigInt, Boolean, undefined, number, and null data types.

JSON Methods & JavaScript

Explain what is JSON? What are the methods available in JSON? What are the differences between JSON and JavaScript? How can we use JSON methods in JavaScript?

Keyboard Events - Keydown/Keyup

Keyboard Events in JavaScript are events that occur when a user interacts with a keyboard. They are triggered by the user's keyboard. - JavaScript Interview Questions & Answers

LocalStorage / sessionStorage

LocalStorage / sessionStorage in JavaScript is used to store data in the browser. It is used to store data in the browser. JavaScript Frontend Questions

Logical Operators

Logical operators are used to combine conditional statements. Logical operators can be applied to values of any type; they are not limited to a Boolean type.

Long Polling

Long Polling in JavaScript is used to check for changes in the server. Long polling is the simplest way of having a persistent connection with the server.

Lookahead / Lookbehind

The lookahead approach involves in catching a match based on a proceeding character or digit.

Map and Set

What is the difference between Map and Object in JavaScript? Map and Set are not primitive data types in JavaScript. They are objects. Interview Answers

Mediator Design Pattern

The mediator pattern is a structural pattern that enables one item to alert another group of objects when an event or action occurs. Interview Questions

Memento Design Pattern

The memento pattern is a behavioral pattern that allows you to save and restore an object's previous state without revealing its implementation details.

Methods of Primitives

Methods of Primitives are functions that are attached to primitive values. What are the 7 primitive data types? Interview Questions and Answers for developers.

Microtask Queue

The Microtask Queue is a queue of tasks that are executed as soon as possible after the current task has finished. Can you explain Microtasks

Mixin Design Pattern

A mixin is a JavaScript object that contains methods that other classes can use without inheriting from it. JavaScript Frontend Phone Interview Questions

Modifying the Document

JavaScript allows us to modify the HTML document by using the Document Object Model (DOM). - JavaScript Interview Questions & Answers

Module Design Pattern

Another popular JavaScript design pattern for keeping our code tidy, segregated, and organized is the Module Pattern.

Modules

JavaScript Modules are a way to organize code into logical units. Modules are used to break down large projects into smaller pieces. Interview Questions

Mouse Events

Mouse Events in JavaScript are events that occur when a user interacts with a mouse. They are triggered by the user. - JavaScript Interview Questions & Answers

Moving the Mouse

Moving the Mouse in JavaScript is a technique that allows you to move the mouse pointer. This is useful for interacting with the mouse. - JavaScript Interview Questions & Answers

Multiline Mode

The m flag is used to specify that a multiline input string should be treated as multiple lines. Regular Expressions Interview Questions

Mutation Observer

Mutation Observer in JavaScript is a JavaScript API that allows you to observe changes in the DOM. - JavaScript Interview Questions & Answers

Native Prototypes

Native Prototypes in JavaScript are a property of the Object.prototype object. It is used to store the Object's properties and methods.

Ninja Code - Bad Coding Practices

Ninja Code - Are one-letter variables a practical idea to use in programming? No, they can confuse a team and make it harder to debug. Don't be a Coding Ninja!

Node Properties

Node Properties are properties of the Node object. They are used to access the Node object. - JavaScript Interview Questions & Answers

Nullish Coalescing Operator

Learn how to use the nullish coalescing operator in JavaScript. Explain how the nullish coalescing operator works? Frontend Developer Interview Questions

Number Data Type

What are the two primitive number data types in JavaScript? In JavaScript, the two number data types include numbers and BigInts. Frontend Developer Interview

Object to Primitive Conversion

The object to primitive conversion is a JavaScript operator that converts an object to a primitive value. All objects are true in a Boolean context. Interview

Object.keys, values, entries

Object.keys, values, entries are used to get the keys, values, and entries from an object. They are used to iterate over the object. Frontend Interview Answers

Observer Design Pattern

The observer pattern allows you to define a subscription mechanism that will notify multiple objects about any events on the object we attempt to observe.

Optional Chaining Operator

The optional chaining operator (?.) is a JavaScript operator that is used to access properties and methods of an object. Pass your next frontend phone interview

Page Lifecycle

Page Lifecycle in JavaScript is a set of events that occur when a page is loaded. They are triggered by the browser. - JavaScript Interview Questions & Answers

Patterns and Flags

Patterns and Flags are used to match text against regular expressions. They are used to match text against regular expressions. Interview Questions

Pointer Events

Pointer Events in JavaScript are events that occur when a user interacts with a pointer. They are triggered by the user's pointer. - JavaScript Interview Questions & Answers

Popups / Window Methods

Popups / Window Methods in JavaScript is a way to open a new window or a new tab. - JavaScript Interview Questions & Answers

Private, Protected Props / Methods

Private, Protected Props / Methods are a way to create properties and methods that are only accessible within the class. Frontend Developer Interview Questions

Promise API

Promise API is the standard API for promises in JavaScript. What are the Promise class's six static methods? Pass Your Next Frontend Phone Interview Questions

Promise Basics

JavaScript Promises are a way to handle asynchronous operations in JavaScript.

Promises Chaining

Promises Chaining is a way to chain promises together. Chaining promises is a process of chaining subscribers of the initial promise. Interview Questions

Promisification

Promisification is a way to convert a callback-based function into a promise-based function. Promisification is a long word for a simple transformation.

Property Flags / Descriptors

Property Flags / Descriptors interview questions. Object property attributes/flags include writeable, enumerable, and configurable flags. Interview Answers

Property Getters & Setters

Property Getters & Setters is a very common interview question. Property Getters & Setters is a process in which a property is defined as a getter and setter.

Prototypal Inheritance

Prototypal Inheritance is a very common interview question. Prototypal Inheritance is a process in which an object inherits properties from another object.

Prototype Design Pattern

The prototype is a creational design pattern that allows you to replicate existing objects without relying on their classes. Interview Questions and Answers

Prototype Methods

Prototype Methods in JavaScript are a property of the prototype object. It is used to store the function's properties and methods. Interview Questions

Proxy and Reflect

JavaScript Proxy and Reflect is a way to create a proxy object that can be used to intercept and change the behavior of an object. Frontend Interview Questions.

Proxy Design Pattern

A proxy is a structural pattern that lets you provide a substitute for another object. The Proxy Pattern acts as a placeholder for another object.

Quantifiers

A quantifier is used to find the exact count in a sequence of digits. JavasScript Interview Questions and Answers

Reference Types

Reference Type is an internal type of the language in JavaScript. They are used to store data. - JavaScript Interview Questions & Answers

Regex / String Methods

Regex / String Methods - The following are the methods available in the regular expression and string objects. Regular Expressions Interview Questions

Regex Sets / Ranges

In simple terms, a range in a regular is denoted or expression inside of square brackets. For instance, [a-z] denotes a range of lowercase letters.

Regex Sticky Flag

Regex Sticky Flag - The flag y allows us to perform the search at the given position in the source string. There is a performance gain when using flag y.

Resource Loading

Resource Loading in JavaScript is a way to load external resources asynchronously. - JavaScript Interview Questions & Answers

Resumable File Uploads

Resumable File Uploads is used to upload large files in chunks. We may use XMLHttpRequest instead of fetch. Frontend Developer JavaScript Interview Questions

Revealing Design Pattern

The basic tenet of the Revealing Module pattern is that all functions and variables should be hidden unless explicitly revealed.

Scheduling / Timing

Scheduling / Timing - setTimeout / setInterval is a very common interview question. There are two commonly used methods for scheduling calls in JavaScript.

Scripts - Async/Defer

Scripts - Async/Defer in JavaScript is a way to load JavaScript files asynchronously. - JavaScript Interview Questions & Answers

Scrolling Events

Scrolling Events in JavaScript are events that occur when a user interacts with a scrollbar. They are triggered by the user's scrollbar. - JavaScript Interview Questions & Answers

Searching the DOM

Searching the DOM is the process of finding an element in the DOM tree. - JavaScript interview questions & answers

Selection and Range

Selection and Range in JavaScript is a JavaScript API that allows you to select text in a document. - JavaScript Interview Questions & Answers

Server Sent Events

Server Sent Events is used to send data to the client. The Server-Sent Events specification describes the built-in class EventSource. - Interview Questions

Shadow DOM

Shadow DOM is used to create a virtual DOM tree that is not connected to the real DOM tree. Encapsulation gets provided via the Shadow DOM.

Shadow DOM / Events

Shadow DOM / Events are used to add event listeners to elements in Shadow DOM. They are used to add event listeners to elements in Shadow DOM.

Shadow DOM Slots - Composition

Shadow DOM Slots is used to compose elements in Shadow DOM. It is used to compose elements in Shadow DOM. JavaScript Frontend Phone Interview Questions

Shadow DOM Styling

Shadow DOM Styling is used to style elements in Shadow DOM. It is used to style elements in Shadow DOM. It is used to style elements in Shadow DOM.

Singleton Design Pattern

Singleton is a creational design pattern that lets you ensure that a class has only one instance, while providing a global access point to this instance.

State Design Pattern

State is a behavioral design pattern that lets an object alter its behavior when its internal state changes. It appears as if the object changed its class.

Static Properties / Methods

Static Properties / Methods are a way to create properties and methods that are shared by all instances of a class. JavaScript Frontend Interview Questions

Strategy Design Pattern

The strategy is a behavioral pattern that allows an object to shift its way of responding to changes in its internal state.

String Data Type

The string data type is a primitive data type that is used to represent text. In JavaScript, is there a data type for a single character? Interview Answers

String Evaluation

String Evaluation in JavaScript works in a similar way to how it works in Python. You should never use eval in your applications.

Styles and Classes

Modifying styles and classes in JavaScript is easy. - JavaScript Interview Questions & Answers

Symbol Type

The symbol type in JavaScript is a primitive type that is used to create unique identifiers for objects.

Template Element

A built-in template element serves as a storage for HTML markup templates. It is used to create custom elements. JavaScript Frontend Phone Interview Questions

Template Method Design Pattern

The Template Method pattern recommends breaking down an algorithm into a series of steps and then turning these steps into methods.

TextDecoder / TextEncoder

TextDecoder / TextEncoder is a built-in object that allows you to convert between UTF-8 and UTF-16. It is used in the browser to convert the text.

The "new" Operator

The "new" operator is used to create a new object instance. What is the difference between a regular function and a constructor function? Interview Question

Unicode Regex

Unicode Regex is used to match text against regular expressions. It is used to match text against regular expressions. Regular Expressions Interview Questions

URL Objects

URL Objects are used to parse and create URLs in JavaScript. Proper implementation of URL Objects is important for security and performance reasons.

Variable Scope / Closures

Variable Scope / Closures is a very common interview question. A closure is a function that remembers its outer variables and can access them.

Visitor Design Pattern

A visitor pattern is a behavioral pattern that enables you to decouple algorithms from the objects on which they operate.

Walking the DOM

Walking the DOM is a process of traversing the DOM tree. What does it mean in JavaScript to walk the DOM? - JavaScript interview questions and answers.

WeakMap / WeakSet

WeakMap and WeakSet are a data structure that are used to store key-value pairs. What are some use cases in applications for a WeakMap? Interview Questions

Web Components

Web Components in JavaScript is used to create reusable components. Their function is encapsulated away from the rest of your code and used in your web apps.

WebSocket

WebSockets are used to connect to a server and exchange data. It is a standard protocol for real-time communication. JavaScript Interview Questions and Answers

What is a Pattern?

A design pattern is reusable code that acts as a solution to recurring problems in JavaScript. A design pattern can be a template for solving a problem.

Window Coordinates

Window Coordinates are the coordinates of the browser window. They are relative to the top left corner of the browser window. - JavaScript Interview Questions & Answers

Window Sizes / Scrolling / Resizing

Window Sizes / Scrolling / Resizing - Browsers also support properties like window.innerWidth/innerHeight. - JavaScript Interview Questions & Answers

Word Boundary

A word boundary \b is a test, just like ^ and $. When the regexp engine comes across \b, it checks that the position in the string is a word boundary.

XMLHttpRequest

XMLHttpRequest is an older API that allows us to send and receive data from a server. XMLHttpRequest is a object that allows JavaScript to make HTTP requests.