Skip to main content
Being Idea Innovations
All Articles
Category

Javascript

10 articles in this category

Regex Explained, and Why Email Validation Is Not a Regex Problem
Javascript

Regex Explained, and Why Email Validation Is Not a Regex Problem

A practical guide to regular expressions plus honest email validation — what a simple pattern catches, why RFC-compliant regexes are a trap, the ReDoS vulnerability lurking in clever patterns, and the only check that actually proves an address works.

26 April 20236 min read
What Is Lexical Scope in JavaScript? A Clear Explanation with Examples
Javascript

What Is Lexical Scope in JavaScript? A Clear Explanation with Examples

Lexical scope decides which variables your code can see, based on where you wrote it. Understand the scope chain, closures, the temporal dead zone, and why `this` is the one thing that does not follow these rules.

25 April 20236 min read
map, filter and reduce in JavaScript: A Practical Guide
Javascript

map, filter and reduce in JavaScript: A Practical Guide

How map, filter and reduce actually work, with real-world examples beyond doubling numbers — chaining, grouping with reduce, the empty-array crash, and when a plain for...of loop is the better choice.

24 April 20236 min read
var vs let vs const in JavaScript: Every Difference That Matters
Javascript

var vs let vs const in JavaScript: Every Difference That Matters

A complete comparison of var, let and const — scope, hoisting, the temporal dead zone, redeclaration, the global object, and why const does not mean immutable.

24 April 20236 min read
How to Check Which Checkboxes and Radio Buttons Are Selected in JavaScript
Javascript

How to Check Which Checkboxes and Radio Buttons Are Selected in JavaScript

Read the state of checkbox and radio groups without jQuery — counting selections, getting all values, select-all with indeterminate, mutually exclusive groups, and safely storing JSON in data attributes.

17 November 20185 min read
Auto-Refresh a Div Every 10 Seconds in JavaScript (Without setInterval)
Javascript

Auto-Refresh a Div Every 10 Seconds in JavaScript (Without setInterval)

Poll a server and update part of a page using fetch and recursive setTimeout — avoiding the overlapping requests setInterval causes, pausing on hidden tabs, backing off on errors, and knowing when to use SSE instead.

2 September 20185 min read
Geolocation and Google Maps Directions: A Working 2026 Guide
Javascript

Geolocation and Google Maps Directions: A Working 2026 Guide

Get a user's location and draw a route with the Google Maps JavaScript API — using the modern importLibrary loader, the API key and billing Google now requires, HTTPS-only geolocation, and honest handling of permission denial.

15 July 20187 min read
How to Select and Preview an Image in JavaScript (FileReader vs Object URLs)
Javascript

How to Select and Preview an Image in JavaScript (FileReader vs Object URLs)

Preview images before upload using FileReader or the faster URL.createObjectURL — with multi-file previews, drag and drop, client-side resizing, and the memory leak most tutorials leave in.

25 April 20186 min read
Browser Notifications in JavaScript: The Complete Guide (2026)
Javascript

Browser Notifications in JavaScript: The Complete Guide (2026)

How to send browser notifications from a web application using the Notification API and Push API — permission handling that does not get you blocked, service worker notifications, and the iOS caveat most guides miss.

23 February 20186 min read

Want to talk tech?

Join 500+ engineering leaders who get our monthly insights on building great software.

No long-term contracts
Senior engineers only
US · AU · NZ timezone coverage
14-day trial on retainers