nodejs2
nodejs2
js Application
const http = require('http')
Method Description
path.normalize(p) It is used to normalize a string path, taking care of '..' and '.' pa
path.join([path1][, It is used to join all arguments together and normalize the resul
path2][, ...])
path.relative(from, to) It is used to solve the relative path from "from" to "to".
path.basename(p[, It returns the last portion of a path. It is similar to the Unix base
ext])
path.extname(p) It returns the extension of the path, from the last '.' to end o
path. if there is no '.' in the last portion of the path or the first c
an empty string.
app.listen(3000, function(err){
if(err) console.log(err)
console.log('Server listening on Port 3000');
});