Pergunta de entrevista da empresa Cisco

Why is javascript considered a functional programming language?