It is very easy to confuse the difference between null and undefined. In this article I will go over how to use the typeof operator to see if a variable is declared or is not defined. Let’s dive right in.
Category: Development
-
Finding Deleted File with GitHub
Let me show you how to find a deleted file with GitHub by using the git log all command.
(more…) -
C# – Convert an Enum to a list
Enums are great to help you strongly reference values without using “magic” strings. Normally I use them in conditional if statements. However, recently I wanted to get all values into a List, where T is your Enum. Let’s explore how Enum.GetValues will help.
-
JavaScript String concat() Method
The Javascript concat method is a great function and this article will hopefully answer your burning question of how do you concatenate strings in javascript?
(more…) -
Access query string parameters with Express and Node.js
Passing data through the URL is a very common practice. As you can see with the URLs on my website, I pass – what I call – a slug of my post title in the URL. In this case: access-query-string-parameters-with-express-and-node-js. With this data I can figure out dynamically what blog post to show. Another common way is to use query string parameters such as ?id=1. There are two common ways that I perform this using Express and Node.js.