All About Code
All you need to get inspired! Take a look at my blog, check your knowledge about some programming topics, and learn new things in depth with images and diagrams.
Grasp any Idea
I always try to understand abstract ideas using visual imagery. I hope you’ll enjoy my way of acquiring unique skills.
Bring Concepts to Life
Unite theory and practice and use your knowledge to develop new inspiring concepts.
Connect Things
Everyone is familiar with the feeling of satisfaction when things get ordered in their mind.
Learning as a Hobby
If you enjoy learning, you are in the right place. It opens up new exciting possibilities that give us the power to keep going further and encourage us to demonstrate our acquired abilities in real life. Education is the necessary fuel for our brain. It extends new paths, and we choose the direction.
How to Get the Keys of an Object in JavaScript
The article looks at the different ways to get the keys of an object in JavaScript. You will become intimately familiar with the necessary toolkit for extracting keys. It allows us to use varied techniques like Object.getOwnPropertyNames() and Object.keys() that make the solution of the task possible. In the sections below, we will analyze their drawbacks and advantages,…
Get Part of String JavaScript
In this article, we’ll look at different ways to get part of a string in JavaScript. substring(startIndex, endIndex) and slice(startIndex, endIndex) are the build-in methods we’ll use to get part of a string in JavaScript: Get part of a string in JavaScript by index As you can see in the above table, slice() and substring()…
Capitalize First Letter of Each Word in a String Javascript
In this article, we’ll look at how to capitalize the first letter of each word in a string in Javascript according to its characteristics. We’ll investigate different ways of approaching the task and how we can divide it to find the solution that best fits our needs. Related articles: Consider the peculiarities of the input…
Check if a Number is a Whole Number in JavaScript
Check if a number is a whole number in JavaScript The Number.isInteger() method determines whether the passed value is an integer. It returns true if the value is a whole number, and false otherwise. In the example above, we defined a variable `number` with the number you want to check and passed it to the…
Capitalize First Letter in JavaScript Make the First Letter of a String Uppercase
To capitalize the first letter of a string use the charAt() method to get the first character, save it in a new variable, then call toUpperCase() to capitalize it. Extract the other part of the string in another variable using the slice() method, then concatenate the new variables.
How to Remove a Specific Item From an Array in JavaScript
Remove a Specific Item From an Array in JavaScript remove approach description occurrence the first item shift() Removes the first item of an array. — the last item pop() Removes the last item of an array. — an item by index splice() Removes an item by index and the method takes the index as an…
How to Find the Smallest Number in an Array in JavaScript
1. Find the Smallest Number in an Array in Javascript The shortest way to find the smallest number in an array in JavaScript is to use the built-in static method Math.min(). Math.min() returns the smallest of the numbers which it takes as input parameters. The arguments are given separated with commas, for example, Math.min(1, 2,…
How to Find the Largest Number in an Array in JavaScript
1. Find the Largest Number in an Array in Javascript The shortest way to find the largest number in an array in JavaScript is to use the built-in static method Math.max(). Math.max() returns the largest of the numbers which it takes as input parameters. The arguments are given separated with commas, for example, Math.max(1, 2,…
Disable a Button in Angular | 2 Easy Examples
Set the disable property to true to disable a button in Angular <button [disable]=”true” …></button> Set the disable property to false to enable a button in Angular <button [disable]=”false” …></button> In this article, we’ll learn how to disable a button in Angular. We’ll create a simple To-Do List App with one component. The main requirements…
Hide a Button in Angular | 6 Simple Ways
In this article, we’ll see six ways to hide a button in Angular. We will create a simple to-do list app with only one component(App Component). It will contain an input element and a hidden button. The button will be shown if the user types an item in the input field. When the user clicks…