Pergunta de entrevista da empresa Algonomy

They asked differences between let, const, and var, concepts of closures, and a small coding round. Coding included frequency counter problems like finding how many times elements appeared in an array or arranging an array based on type and returning an object.

Resposta da entrevista

Sigiloso

20 de ago. de 2025

var is function-scoped and allows redeclaration, let and const are block-scoped. let allows reassignment, while const does not. closure is when a function remembers its lexical scope even if executed outside of it. It’s often used for data privacy and maintaining state.