}

Articles tagged "javascript"

Page 1 of 3

19 min readIntermediate

Next.js 15 Full-Stack App 2026: App Router, Prisma, NextAuth, and Vercel

Build a production full-stack app with Next.js 15 in 2026. Use the App Router, React Server Components, server actions, Prisma ORM, NextAuth.js authentication, and deploy to Vercel.

16 min readIntermediate

TypeScript for JavaScript Developers 2026: Practical Migration Guide

Learn TypeScript as a JavaScript developer in 2026. Covers types, interfaces, generics, decorators, and migrating a real JS project to TypeScript with tsconfig best practices.

5 min readBeginner

Fix: React Modal App Element Not Defined [react-modal Setup Guide]

Fix "Warning: react-modal: App element is not defined" error. Learn Modal.setAppElement() for CRA, Next.js, Vite, and testing.

1 min readBeginner

Update package.json to Latest Versions

package.json contains information about your project, to update libraries automatically you can use

1 min read

How to Trim String in JavaScript ?

With javascript if you need to remove the spaces on left and right you can use trim. If you need to trim only the left side of the string use replace with a regex, ex: str.replace(/^s+/,'');. Check this article for more details

1 min read

How to Trim String in JavaScript ?

With javascript if you need to remove the spaces on left and right you can use trim. If you need to trim only the left side of the string use replace with a regex, ex: str.replace(/^s+/,'');. Check this article for more details

2 min readBeginner

Javascript: How to remove a specific element from an array?

In this small tutorial we will give example on how to remove a specific element from an array with javascript. Code example: var index = array.indexOf(5); if (index > -1) { array.splice(index, 1); }

1 min readBeginner

JavaScript: Get Dropdown Selected Value

We will explain hot to retrieve the selected element using javascript. e.options[e.selectedIndex].value will return the value of the selected element where e is the variable obtained with document.getElementById("selector"). Check here a full jQuery example also. Read our tutorial for more details.

3 min readIntermediate

JavaScript CORS: Access-Control-Allow-Origin Fix

When you try to fetch data from a different domain using javascript you will get the error: No 'Access-Control-Allow-Origin' header is present on the requested resource. This is a security feature of web browsers. The proper solution is to use CORS, check here for full solution. Alterntive you can code a custom proxy or use JSONP.

1 min readBeginner

JavaScript: How to know if and Object is empty?

In general there is now way to check is a javascript object is empty. We create a new function to verify if the object is empy. As an optional step we add it to the object prototype.