Pregunta de entrevista de Capgemini

They asked one JavaScript coding question, and another question where I had to predict the output of a JavaScript code snippet and explain the reason behind it.

Respuesta de la entrevista

Anónimo

15 dic 2025

For the coding question, I wrote the required code. For the output-based question, I explained the execution step by step by doing a dry run of the code.