meta logo
Meta· frontend

Meta | frontend | Phone screen

Posted
28 Apr 2025
314 reads

Summary

I had a phone screen interview at Meta for a frontend role, where I was asked to implement two JavaScript functions from scratch: Memoize and Classnames.

How it went

Both question where to write JS functions from stratch:

  1. Write Memoize function: https://www.greatfrontend.com/questions/javascript/memoize

  2. Write Classnames function: https://www.greatfrontend.com/questions/javascript/classnames

Questions asked (2)

  1. 01

    Implement Memoize Function

    Data Structures & Algorithms

    Write a JavaScript function from scratch to implement a memoize function. This function should cache the results of expensive function calls and return the cached result when the same inputs occur again.

    Open the problem
  2. 02

    Implement Classnames Function

    Data Structures & Algorithms

    Write a JavaScript function from scratch to implement the classnames utility. This function should take multiple arguments (strings, objects, arrays) and conditionally join them to form a CSS class string.

    Open the problem

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Meta recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!