NodeJS One Line Code Snippets

Posted by & Node.js

nodejs

How to Install NVM (Node Version Manager) curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash How to Install Node.js with NVM? nvm install v12.18.0 How to Set the Default Node.js version with nvm? nvm alias default v12.18.0 How to Pass command line (CLI) arguments to a Node.js app? process.argv.forEach((val, index) => { console.log(`${index}: ${val}`); }); node process-args.js one… Read more »

Top 3 Software Testing Courses

Posted by & Frameworks Test Automation

Here is a list of the top 3 software testing courses, with the latest and most popular web testing frameworks on the market today: The Ultimate Cypress Testing Hands-on Guide Course Build an End to End Software Testing Framework with TestCafe Course Selenium IDE Test Automation Tool with Record and Playback Course If you are… Read more »

‘use strict’ in JavaScript

Posted by & Frameworks JavaScript

JavaScript

When to add ‘use strict’ in JavaScript and what implications implies. If you don’t use ‘use strict’, the context of this will be the global window object. function getName() { console.log(this) } getName() When using strict mode, the context of this inside a function on the global context will be undefined: ‘use strict’ function getName()… Read more »