Adding custom javascript to sage 10 theme

Im having trouble understanding how to add my own javascript using roots. I am trying to add a few functions but I cant seem to figure out how to link a javascript file to the blade templates. When I try I get reference error.