Variables or Constants declared within a code block are said to be in a local scope. When we declare a variable or constants with the let or const…
There are two(2) different methods to checks if all elements in an array pass a certain test (provided as a function), which are the every method and some Method.
The every() method checks whether all the elements of the array satisfies the given condition or not that is provided by a method passed to it as the argument. If it finds an array element where the function returns a false…
It’s possible to modify an Array by Adding an element to it. We can add an element at the Beginning of an Array, In the Middle, and also at the End of an Array. We can do this using the following methods:
The push Method allows us to add one or more element to the end of an array. Here’s an Example:
It’s my second day into the #100DaysOfCode challenge. You can check out my previous article here .
Today kicked off with a topic i found relatable and very applicable. I Played around with some exercises and i’ll be sharing all I've learnt on this topic.
With the For-In Loop we can enumerate all the properties and methods in an object. Let’s see a clear example:
I started the #100DaysOfCode challenge today, you can join me on this challenge here
Factory Functions are functions which are neither classes or constructors. If a function returns a new object without the new keyword,they are said to be a Factory Function. The Naming Convention used here is the Camel Notation. Let’s see an example of a Factory function
Tech Enthusiast,Programming or Nothing!!