express static middleware only on js files code example
Example 1: app.use public
express.static(root, [options])
Example 2: static file
Static file is any content that can be delivered to an end user without
having to be generated, modified, or processed.