codewithsarir

codewithsarir

Share

29/06/2026

JavaScript quiz time! 🧠 Can you dodge the "Object Reference Trap" shown in sni?
​This is a classic gotcha that trips up both beginners and intermediate coders alike. Understanding how memory allocation and shallow copies work under the hood will save you hours of debugging later on.
​Take a look at the code and drop your vote below! 👇
A) 'Sarah' and 2
B) 'Adam' and 2
C) 'Sarah' and 1
D) 'Adam' and 1
​Tag a developer friend who loves a good code puzzle! ☕✨

08/06/2026

JavaScript Interview Check: The Nested Closure Trap! 🧠💻

Time for a quick engineering sanity check! Look closely at the code puzzle in image and determine exactly what the console output will be when this ex*****on sequence runs.
​This specific pattern is a classic technical interview screen because it instantly exposes the difference between devs who understand engine memory references and those who just guess how scoping functions handle state over time.
​👉 Study the snippet inside image:
​(A) 1, 2
​(B) 1, 1
​(C) 2, 2
​(D) undefined, undefined
​Try to run the ex*****on context steps entirely in your head before writing your answer down. No console pasting!
​Vote in the comments and drop your structural reasoning below! 👇✨
​Hashtags:

Want your school to be the top-listed School/college in Gilgit?
Click here to claim your Sponsored Listing.

Telephone

Address

Rehman Colony Naveed Shaheed Road Sonikot Gilgit
Gilgit
1500