Introduction
Use path.join to combine file or folder names into a single path that works on any computer system.
When you need to create a file path that works on Windows, Mac, or Linux.
When combining folder names and file names into one path.
When you want to avoid errors caused by wrong slashes in file paths.
When writing code that others will run on different operating systems.
When building file paths dynamically from variables.