Primotech interview question

Draw patterns and some questions from javascript and node js