frontend-challenges icon indicating copy to clipboard operation
frontend-challenges copied to clipboard

FrontendChallenges is a collection of frontend interview questions and answers. It is designed to help you prepare for frontend interviews. It's free and open source.

Results 109 frontend-challenges issues
Sort by recently updated
recently updated
newest added

index.js ```js index.js /** * Detect the data type of any JavaScript value. * @param {any} value - Value to detect type of * @returns {string} Lowercase type name */...

answer
javascript
489

index.js ```js index.js /** * Detect the data type of any JavaScript value. * @param {any} value - Value to detect type of * @returns {string} Lowercase type name */...

answer
javascript
489

index.js ```js index.js /** * Find corresponding node in two identical DOM trees. * @param {Node} rootA - Root of first tree * @param {Node} rootB - Root of second...

answer
javascript
486

index.js ```js index.js /** * A store that uses DOM elements as keys. * Cannot use ES6 Map, must implement custom solution. */ class NodeStore { constructor() { this.store =...

answer
javascript
483

index.js ```js index.js /** * Simple DOM wrapper with method chaining support. * @param {string} selector - CSS selector * @returns {object} wrapper with chainable methods */ function $(selector) {...

answer
javascript
480

index.js ```js index.js import { Stack } from "./stack"; class Queue { constructor() { this.inStack = new Stack(); this.outStack = new Stack(); } enqueue(element) { this.inStack.push(element); } _shiftStacks() { if...

answer
javascript
104

index.js ```js index.js const isObject = (obj) => typeof obj === 'object' && obj !== 'null'; /** * Immutability helper for nested updates. * @param {any} target - object or...

answer
javascript
474

index.js ```js index.js /** * Creates a function that pipes values through a sequence of functions. * @param {Function[]} functions - array of unary functions * @returns {Function} composed function...

answer
javascript
471

index.js ```js index.js /** * Returns a function that finds the first bad version using binary search. * @param {Function} isBad - predicate function * @returns {Function} finder function that...

answer
javascript
468

index.js ```js index.js /** * Decodes hidden message using diagonal zig-zag traversal. * @param {string[][]} grid * @returns {string} */ export function decodeMessage(grid) { let decoded = ""; let row...

answer
javascript
465