ES2019 or ES10 is the 2019 version of JavaScript. After the major 2015 update, JavaScript has been evolving every year. Developers get a small set of useful features, that helps us balance between innovation and stability. You can also follow the evolution ... more
ES2019 or ES10 is the 2019 version of JavaScript. After the major 2015 update, JavaScript has been evolving every year. Developers get a small set of useful features, that helps us balance between innovation and stability. You can also follow the evolution ... more
In this article, you will find different ways to reverse a string. Attempt to solve this exercise alone, and run the code in the below terminal. Even if your solution is successful, I suggest reading all the solutions. Exercise Exercise : Write a reverse ... more
In this article, you will find different ways to reverse a string. Attempt to solve this exercise alone, and run the code in the below terminal. ... more
Back in 2015, I was developing applications using Backbone and Marionette, when a young developer approached me to tell me something exciting. “Check out React”, he said. I have heard this before with AngularJs, with KnockoutJs, and during that time, ... more
Back in 2015, I was developing applications using Backbone and Marionette, when a young developer approached me to tell me something exciting. “Check out React”, he said. I have heard this before with AngularJs, with KnockoutJs, and during that time, ... more
In the last few months, I have been coordinating a software project as a tech lead. From a PR perspective, we are calling this position as a tech lead, but in reality, I am undertaking an architect role. It is a lot of fun to launch something from scratch. ... more
In software development, working with strings is a common problem. We often read, process, and write text files, perform logging on the activities of a system, or analyze user input. Learning how to perform string operations is essential in any programming ... more
In software development, working with strings is a common problem. We often read, process, and write text files, perform logging on the activities of a system, or analyze user input. Learning how to perform string operations is essential in any programming ... more
This is another episode of the JavaScript for Beginners series. In the first post, you have learned how to write basic JavaScript code. In this article, you will find out how to use JavaScript with HTML and CSS. The goal of this article is not to teach ... more
This is another episode of the JavaScript for Beginners series. In the first post, you have learned how to write basic JavaScript code. In this article, you will find out how to use JavaScript with HTML and CSS. The goal of this article is not to teach ... more
Even though you have seen many tech interview exercises already, we have not covered algorithmic complexity yet. Therefore, I will just give you a straight to the point explanation of the big O notation. Big O is a performance metric measuring the worst ... more
In this article, you will learn about higher order functions. An important cornerstone of functional programming is higher order functions. If you want to write programs in mostly functional style, it is inevitable that you master the basics of higher ... more
In this article, you will learn about higher order functions. An important cornerstone of functional programming is higher order functions. If you want to write programs in mostly functional style, it is inevitable that you master the basics of higher ... more
This article will give you an overview on the new features of ES2018. First, we will discuss the new features of ES2018. Then you will learn what you need to do to start using them today. You may want to try out the code examples in your browser. Just ... more
As I promised in my last article on JavaScript fundamentals, you can expect some beginner-friendly content on this blog along with some learning paths. I strongly believe in practical application. Therefore, I will not bore you with facts, long theory, ... more
As I promised in my last article on JavaScript fundamentals, you can expect some beginner-friendly content on this blog along with some learning paths. I strongly believe in practical application. Therefore, I will not bore you with facts, long theory, ... more
This article is a continuation of last week’s post on ES2017 Async-Await, detailing the updates of ES2017. Check out the ES2016 plus compatibility table for more information on the current browser support. Most likely, you will need a transpiler. Use ... more
The ability to write asynchronous functions is a major update in ES2017. In order to understand this chapter, I suggest that you review the chapter on promises. What are asynchronous functions? Asynchronous functions are functions that return a promise. ... more
If you have read most of the blog posts of zsoltnagy.eu, you can conclude that most of the articles require at least some basic knowledge about JavaScript. The main exception is the JavaScript Basics category. This article is in the basics category too, ... more
Exercise : Suppose the following tables are given in the form of arrays of objects: var inventory = [ { id: 1, owner: 1, name: 'Sword', weight: 10, value: 100 }, { id: 2, owner: 1, name: 'Shield', weight: 20, value: 50 }, { id: 3, owner: 2, name: 'Sword', ... more
Exercise : What is memoization? What are its benefits? What is the necessary condition for using memoization? Illustrate the benefits of memoization using an example. Remark : Expect these types of questions when bridging theory with practice. You need ... more
Exercise : Create a stopwatch that counts down from a given number of seconds in the format mm:ss . Make it possible to start , pause , and reset the countdown. Make sure you can pass a callback function to the timer that is called when the displayed ... more
We have skipped a couple of exercises that transformed our Pomodoro app into a Kanban board. Tasks 12 – 15 are great exercises for refactoring, and you can get access to them in ES6 in Practice, but they are less optimal as a blog post material. Let ... more
As some of my subscribers might already know, I was busy authoring a JavaScript course on microservices together with Packt Publishing. This kind of cooperation is always interesting, because there are fixed target dates to follow, and I tend to live ... more
The last few weeks made me think about renaming my book. Because ES6 was ES2015. Of course when I started writing ES6 in Practice, I included those two small ES2016 updates. Then I promised a bonus chapter on ES2017 including the famous async-await update. ... more
A regular expression is converted into code executed in a virtual machine. This virtual machine runs on the virtual machine of the host language or editor. Abstract models make us understand how regular expressions are executed. Although these models ... more
Exercise : Store the state of the application in a local storage. Make sure the application state is reloaded once you refresh the page. Solution : Clone PomodoroTracker2 from my GitHub repository as a starting point. Alternatively, you can use your ... more
You might not know about me that I have conducted tech interviews with over 500 software developers from more than twenty countries with the objective of identifying and hiring the best talent. I have also been in the candidate position, interviewing ... more
The article ES6 Strings and Template Literals introduced you to the syntax of ES6 strings and template literals. However, if you wanted to use ES6 template literals for microtemplating, the article itself does not help you. In this article, you will ... more