Question d’entretien chez Walmart

First asked about projects and internships. Then asked about JavaScript knowledge, design two classes, one inherits another; what is closure. a simple print question. eg. given [1,2,3] print [1-1] [1-2] [1-3] [2-2] [2-3] [3-3]