Egen interview question

went through the code and ask some possible features in javascript.