Robson Fagundes
Software Engineer - Full Stack Web Developer
Featured
JavaScript Variables - Hoisting.
JavaScript Variables - Hoisting. Formerly in languages like C, functions or procedures were used to split a program, but there was a problem: declarations should always be at the front, functions at the beginning of the program solved the problem for a while, since all functions and variables were declared...
JavaScript Variables - Closures.
JavaScript Variables - Global variables can be made local (private) with closures. Global variables can be made local (private) with closures. A closure normally occurs when one function is declared inside the body of another, and the inner function references local variables of the outer function. At runtime, when the...
JavaScript Variables - Instantiation using an IIFE
JavaScript Variables - Instantiation using an IIFE IIFE (Immediately-Invoked Function Expression), is a function that executes immediately after it is defined. There are several places we can use an IIFE, but the most common is when we want to create a scope in JavaScript so that the variables defined within...
JS Hack - Default value with logical operator ||
JS Hack - Default value with logical operator || In this post I will share another useful hack to use in JavaScript. When you have an object that needs default values when no parameter is passed to it, you can use the logical operator ||. To check whether the valid...
JS Hack - Calculating Age
JS Hack - Calculating Age In this post I will share an extremely useful hack to apply in JavaScript. If you ever need to create a function that calculates age based on a date of birth, I recommend that you use this function that makes an extremely performative spell: function...
GitHub Pages + Jekyll = [:)]
#GitHub Pages + Jekyll = [:)] ####Learn how GitHub and Jekyll works and how they can help you make static websites without database and easier to manage. What are GitHub Pages? GitHub Pages are public webpages hosted and published through our site. User, Organization, and Project Pages. There are two...