Initial project to start working with JavScript
Structure: |_ browser_js => try to use js in html page |_ node_js => try to use js in Node.js |_ test => try to simple web page QA testing with Node.js, Mocha, Chai
open simple.html in any browser
- open Node.js console from start menu
- for Windows open cmd
- for Mac open terminal
- in VScode you can use build in terminal
- Check if your pc has Node.js with
node -v
- run command
node .<path to js file>/<file name>.js
node ./node_js/first.js
using any terninal (as in previos)
- check if you have npm instaled, if it isn't show you a version install npm
npm -v
- in project folder
npm install
it will create node_modules folder - Run test
npm test