JavaScript Objects and Arrays
In addition to primitive values, such as strings, numbers, and boolean, there are more complex data structures. Today, we’ll talk about objects and arrays. — Why do we need them?...
In addition to primitive values, such as strings, numbers, and boolean, there are more complex data structures. Today, we’ll talk about objects and arrays. — Why do we need them?...
A JavaScript string is any sequence of characters enclosed in single, double, or backtick quotes. const doubleQuotedString = "This is a double quoted string"; const singleQuotedString = 'This is a single quoted string'; const backtickQuotedString = `This is a string wrapped in backticks`; There is no difference between single quotes and double quotes, and there are two peculiarities of backticks....
At a scale, computer programming consists of two core concepts. These are Algorithms and Data Structures. Let’s start with the data. To make the information easily digestible, we won’t get hung up on terminology, but get straight to the point....
Comparing while and do-while Loops in JavaScript In the previous article, we explored the while loop in JavaScript and its benefits for repetitive tasks. Now, let’s dive into another type of loop: the do-while loop....
This far, I taught you to only use the code you’ve written yourself. From the learning point of view - it’s correct. In the real world, though, most of the common coding tasks have been already solved....
In a lecture about npm modules, I told you that you shouldn’t try to reinvent the wheel. First look for a ready-made solution, and only if you can’t find anything useful, then get down to business yourself....
It’s good to have simple, and straightforward code execution rules. Top to bottom left to right. Everything is simple, everything is clear. But, if the current means are not enough to complete the task, then new rules need to be introduced....
Short articles: JavaScript comments JavaScript if statement JavaScript boolean type Understanding true and false in JS JavaScript return statement JavaScript arrays JavaScript for loop try/catch JavaScript while loop Multidimensional arrays in JS What is a string in programming JavaScript variables Built-in String functions in JavaScript Strings in JavaScript How to filter out array elements in JS JavaScript array filter How to iterate over the array in JavaScript with forEach Strict equality in JavaScript How to get a random integer in a range with JavaScript JavaScript absolute value What is the type of undefined in JS Loose equality in JavaScript Strict equality in JavaScript Check for undefined Lecture format:...
The boolean data type is a fundamental concept in JavaScript and programming as a whole. It represents two truth values: true and false. Booleans in JavaScript form the basis for logical decision-making, branching, and control structures....
Beginners trying to learn to code often find themselves facing a roadblock: the fear of challenges. But here’s the secret that experienced software engineers know well—progress is impossible without challenges! Just like leveling up in a video game, you need to conquer obstacles to grow stronger and become a coding master....