Im doing advent of code Day one using javascript. can someone help me figure out how to write a function?

the problem is I need to take two numbers in a pretty big array and figure out which two multiplied equals 2020. i will insert a link to where i input my code. i just do not know how to write out the right function. https://learn.grasshopper.app/gallery/edit?savedCode=iUHGKQczTMqjcRjFsKS0