Cover Image Alpine example code

Access AlpineJS x-data variable outside scope

I was big fan of jQuery before I started using AlpineJS!. Alpine is so easy and seamless that I fell in love with it instantly. One more thing that you might want to consider is its size. Alpine is very small in comparison of jQuery, Vue, Angular etc. Alpine was previously called Tailwind of JavaScript. If you don’t know about Tailwind, Man you should read it. If you wanted to learn about AlpineJS basics and other concepts click here....

July 24, 2021 · 3 min · Rahul Rajput

For Each loop in JavaScript

Introduction In this blog post we will learn about the foreach loop in javascript if you are new to javascript please see this. Folks who haven’t used since long time here is the refresher. What is For Each Loop: this is the loop which automatically iterates through all the elements of an array, it helps in the working with the dynamic array. Let’s start working. In javascript for-each loop works in a different way....

December 15, 2018 · 2 min · Rahul Rajput