Vertrical Interview Question

explain the patterns in javascript