← Back to experiences
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/experiences/…$
Level: Mid-Level
Round: Phone Screen · Type: Coding · Difficulty: 6/10 · Duration: 60 min · Interviewer: Very Friendly
Topics: JavaScript, Memoization
Location: Toronto, ON, CA
Interview date: 2025-10-08
I had a phone screen with a very helpful interviewer. The main question involved implementing a memo function similar to react.memo using JavaScript.
The coding question I received was:
Implement a memo function, similar to react.memo.
Consider the case with one argument: If the argument of the memoized function is the same as before, avoid calling the function and directly return the previously calculated result. You need to store the previously calculated results.
Follow-up questions:
My Approach:
JSON.stringify for simple objects and primitives. I realized this approach would fail for objects with different key orders.Key Insights: