My Books

Text Processing with JavaScript

Solve complex text validation, extraction, and modification problems efficiently in JavaScript.

Modern Async JavaScript

Delve into async features of JavaScript from ES2020 through ESNext. Start building custom asynchronous iterators and generators, and more for fast, lean code.

JavaScript Brain Teasers

Ready to test your JavaScript skills? Challenge yourself with these brain-teasing puzzles, supercharge your learning journey, and emerge as a JavaScript pro.

People often ask me what the difference is between UI (user interface) and UX (user experience). Today I'm going to answer this question, and compare them with IxD (Interaction Design). When we hear the word design, we think about how something looks. On the Web, before designing a website we should consider designing how the site works, how it will be used, and how people move through it.

To check if an element is visible using jQuery, you can use .is(':visible'). If you wanted to check whether an element is hidden then you would use .is(':hidden) instead.

Alternating row colors in jQuery can be easily done using :even and :odd selectors. Let's apply these selector to a list and see the effect.

In some cases you can do things with a subquery that can't be done with join. However when using subqueries, there can be performance costs.

Using css you can improve the readability of large tables. Learn how to color alternating rows in a few lines of css code without using any server-side code or javascript.

By placing a robots.txt file in your root directory you can easily prevent robots from accessing your website. This file can be easily created using simple text editors like Notepad in Windows or TextEdit in Mac OSX.

We, as programmers often need to generate random numbers in different application. Generating a random integer in javascript can be done using the Math.random() method. In fact it is one of the several ways that we can use to generate a random number with javascript.

In this tutorial, I will explain how you can style odd/even rows without the need of any extra CSS class or JavaScript code.