I used path.join (__dirname, ...)
to get the absolute path from node js.
But I don't know why is path.join better than string operations? like: __dirname + path...
Recently I learned that the ES2015 script supports the "template literals" syntax.
So, which of these three cases is the best? Of course, it seems to use a lot of path.join. I don't care if others use it a lot, but I wonder why I use path.join.
Case1: path.join
path.join(__dirname, 'public')
Case2: string operation
__dirname + '/public'
Case3: template literals
`${__dirname}/public`