Im trying to learn node.js and have hit a bit of a roadblock.
My issue is that i couldn\'t seem to load an external css and js file into a html file.
// get the extensions of the files inside this dir (.html, .js, .css) var extname = **mypath**.extname(path);
These are reversed. Should be:
var extension = path.extname(mypath);
I also do not use function names for variable names when I can avoid it.