Vertrical interview question

explain the patterns in javascript