Blog Archive - December 2016

Written by Kevin Chisholm on December 19, 2016
Sometimes you want to know where you are. This happens plenty of times in real life, but it also happens in Node.js. If you need to programatically determine the current folder, you may turn to process.cwd() or __dirname. There is a difference between them though. In this article we'll discuss...
Read more...

Written by Kevin Chisholm on December 19, 2016
Functions are first-class citizens in JavaScript. This is one of the most popular aspects of the language. It is also one of the most powerful features. When a function is a property of an object, it is also considered a method of that object. Inside of a method, the this keyword provides value...
Read more...