Now, before we can use JavaScript and continue with D3, we need to install and run a local web server on our computer. Browsers have very strict access to the local file system. The same-origin policy prevents foreign scripts from running and protects us from malicious programmes. Therefore, we need to run a local web server to be able to continue working in the following.
You now have several possibilities to install a webserver:
python -m SimpleHTTPServer
npm install --global http-server
brew install http-server
npm install -g live-server