Is it faster to bake javascript into html?

I heard that requesting many single Javascript files in a HTML page is slow, so I wonder if it is faster to bake all those files directly into the HTML code using a build system or is it better to merge all JS files into one file and than requesting that file in the HTML document?