August 31, 2024
If you made a change in your .env
file, and you see that Git is not ignoring the file despite having it included in your .gitignore
file, there is a significant chance that the file was already added to your repository before you added it to .gitignore
.
Read More
May 6, 2024
You can use several methods to upgrade your Node.js version on your Mac. One of the most common and efficient ways to achieve this is by using Node Version Manager (nvm).
Read More
January 31, 2024
In Git, you can ignore files and folders using the .gitignore
file. If the file does not exist in our GitHub repository, you have to create it at the root of our project.
Read More
January 30, 2024
Suppose you have to implement a function that takes a floating point number and returns the amount formatting in dollars and cents.
Read More
October 17, 2021
If you want to tell Git to ignore files that start with a specific word you will need to add a `.gitignore` rule.
Read More
September 5, 2021
There are two possible ways to get CSS values in JavaScript, depending on if you are trying to get the inline styles or the computed styles.
Read More
June 8, 2021
In JavaScript, there are two kinds of accessors - getter and setter. Getter and setter are methods that gets and sets a property.
Read More
June 7, 2021
Spread syntax allows an iterable such as an array, an object or a string to be expanded by using `...`.
Read More
June 6, 2021
Sometimes you might need to convert a value to an object. One of the ways to achieve this is by using the `Object()` function.
Read More
May 1, 2021
Destructuring is used whenever we need to basically get some data out of an object or out of an array. In other words, is a short, clean syntax for unpacking values from arrays and properties from objects into distinct variables.
Read More
April 13, 2021
When working with position absolute, centering an element can be a bit tricky since it's taken out of the normal document flow.
Read More
March 31, 2021
Rather than destructuring inside the function body, we can unpack the values we want right in the parameter list.
Read More
January 23, 2021
ES6 Computed Property Names allows us to dynamically generate names within object literals.
Read More
January 16, 2021
Copying an array from the console is a common task when working with JavaScript.
Read More
December 29, 2020
Destructuring is used whenever we need to basically get some data out of an object or out of an array. In other words, it is a short, clean syntax for unpacking values from arrays and properties from objects and putting them into named variables.
Read More
December 26, 2020
The arguments object is available in every function you write, except arrow functions. It contains all the arguments passed to it.
Read More