OLA Electric interview question

Basic and deep JavaScript questions.