I am learning about node.js, but I think the guide that I was following was slightly outdated. It seems that the "url.parse" method has been deprecated and even through google searches I could not understand which is the appropriate replacement for it, and how to apply it to my code:
const http = require('http'),
fs = require('fs'),
url = require('url');
http.createServer((request, response) => {
let addr = request.url,
q = url.parse(addr, true),
filePath = '';
All help is appreciate it!
url.parse, create a new URL object