How to merge arrays in JavaScript

How do you merge two arrays in JavaScript/jQuery? Method 1: Traditional or simple way – using loop Iterating on one of two arrays, get each element and append it into…

How to stop YouTube showing related videos

Unfortunately, if you’re like a lot of people and embed YouTube videos on your website, you might have noticed random videos showing up when you pause or get to the end of the video. Sometimes these videos could be from your competitors.

A short interview about An Lac House

In this post, we want to present how to embed a YouTube video into your WordPress and keep it responsive. What we need is to add a few CSS attributes…

How to prettify HTML documents at the terminal

When working with RESTful APIs, developers often hit API endpoints to test and look up data in either JSON or XML as the common formats. We have published two recent…

Using JavaScript console better

The console object provides access to the debugging console (e.g., the Web console in Firefox). The specifics of how it works vary from browser to browser or server runtimes (Node.js, for example), but there…

Popular shorthand techniques in JavaScript

The shorthand techniques can help you to write optimized code and let you achieve your goal with less coding. Let’s discuss some of the shorthand tips and tricks of JavaScript…

Understanding React Rendering: Part 2 – Improve rendering in React apps

In the recent post about understanding how React renders components, we presented how React renders UI elements and also raised awareness of the fact that React renders everything when only…

Understanding React Rendering: Part 1 – When does React render UI elements?

One of the key features of React is its ability to update the user interface efficiently by re-rendering components when there are changes to the state or props. However, this…

What are the differences between reactstrap and react-bootstrap in React?

reactstrap and react-bootstrap, they are packages based Bootrstrap framework for React developers. As developers, we can use either of them. However, it is important to remember that we should keep consistent.

Create preview images for your web page displayed in Google search results

You might want to create a preview image for your web page which it will be displayed in Google search results. This image will help users in the sense of…