Question d’entretien chez Cisco

Why is javascript considered a functional programming language?