how to send js file for html file to client in node code example Example: send html file express res.sendFile(path.join(__dirname + '/index.html'));