Petar Pav4,728 Points
const https = require('https'); - getting error in chrome
Hi guys, I am getting error on ' require ' when trying to print the request in the browser. Any ideas why does it happens? Probably is something right in front of my noose but cant see my own mistake. Here is the code:
The error in browser is " Uncaught ReferenceError: require is not defined at app.js:6"
Steven Parker171,373 Points
This is not browser code. This is code to be run on a server or workstation using node.js.
The course provides a workspace where you can run node (and node scripts) without installing it on your own machine.