Javascript

Step by step to solve common issues with 'addEventListener' not working with AJAX. For example event delegation!

[FIXED] addEventListener not working AJAX

Jul 15, 2023

Step by step to solve common issues with 'addEventListener' not working with AJAX. For example event delegation!

4 ways to handle addEventListener by class name!

[How To] addEventListener by class name

Jul 12, 2023

4 ways to handle addEventListener by class name!

Solutions to fix common issues with resize event listeners. Plus, learn how to leverage the powerful 'ResizeObserver' API to observe changes in the dimensions of elements directly.

[FIXED] addEventListener resize not working

Jul 12, 2023

Solutions to fix common issues with resize event listeners. Plus, learn how to leverage the powerful 'ResizeObserver' API to observe changes in the dimensions of elements directly.

Guide to Fixing why addEventListener not working with beforeunload event!

Fixing addEventListener not working with beforeunload

Jul 7, 2023

Guide to Fixing why addEventListener not working with beforeunload event!

How to use addEventListener for the enter key

[TIP] addEventListener for enter key

Jul 6, 2023

How to use addEventListener for the enter key

Guide to fix the addEventListener cannot read property of null issue

FIX - addEventListener cannot read property of null

Jul 5, 2023

Guide to fix the addEventListener cannot read property of null issue

The full list of event types thats valid for addEventListener()

addEventListener Events List

Jul 5, 2023

The full list of event types thats valid for addEventListener()

Issues with the 'change' event not working with addEventListener? I list common issues that might be preventing your code from running as expected and give fixes.

Fixed - addEventListener 'change' not working

Jul 2, 2023

Issues with the 'change' event not working with addEventListener? I list common issues that might be preventing your code from running as expected and give fixes.

Common causes of the 'addEventListener is not a function' error in JavaScript and the guide to fix this.

How to fix - addEventListener is not a function

Jul 1, 2023

Common causes of the 'addEventListener is not a function' error in JavaScript and the guide to fix this.

Understanding Event Listeners in JavaScript - fixing addEventListener issues

[FIXED] addEventListener click not working

Jun 29, 2023

Understanding Event Listeners in JavaScript - fixing addEventListener issues

From utilizing the JSON.stringify() method for JSON representation to invoking the toString() method or the String() constructor, the post will guide you through each approach.

8 Ways to Convert JavaScript Object to String

Jun 20, 2023

From utilizing the JSON.stringify() method for JSON representation to invoking the toString() method or the String() constructor, the post will guide you through each approach.

Guide to fix the pesky error of ERR_MODULE_NOT_FOUND with Javascript applications

[SOLVED] ERR_MODULE_NOT_FOUND - Cannot find module.md

Mar 23, 2023

Guide to fix the pesky error of ERR_MODULE_NOT_FOUND with Javascript applications

Step by step fixes for Git ignore node_modules not working

[Solved] Git ignore node_modules not working (.gitignore)

Feb 7, 2023

Step by step fixes for Git ignore node_modules not working

Tips to fix the Access to *.ngrok.io has been denied for Ngrok tunneling service

[Fixed] Ngrok - Access to *.ngrok.io has been denied

Feb 6, 2023

Tips to fix the Access to *.ngrok.io has been denied for Ngrok tunneling service

Step by Step to fix: SyntaxError Cannot Use Import Statement Outside a Module

[Fixed] SyntaxError Cannot Use Import Statement Outside a Module

Feb 5, 2023

Step by Step to fix: SyntaxError Cannot Use Import Statement Outside a Module

Ever had problems with onbeforeunload not triggering? Check out steps to fix this in this post!

How to Fix Javascript onbeforeunload not working

Jan 26, 2023

Ever had problems with onbeforeunload not triggering? Check out steps to fix this in this post!

Wondered to how to fix 'await is only valid in async functions and the top level bodies of modules' errors? Check out options in this post!

[Fixed] await is only valid in async functions and the top level bodies of modules

Jan 25, 2023

Wondered to how to fix 'await is only valid in async functions and the top level bodies of modules' errors? Check out options in this post!

Having issues with the error SyntaxError Unexpected Token 'export'. This post list ways to get rid of that!

Fixing SyntaxError Unexpected Token 'export'

Jan 21, 2023

Having issues with the error SyntaxError Unexpected Token 'export'. This post list ways to get rid of that!

Need to convert dates to the format DD/MM/YYYY in JavaScript? Check this post for all the ways to this!

[How To] Javascript format date to dd mm yyyy in 2023

Jan 21, 2023

Need to convert dates to the format DD/MM/YYYY in JavaScript? Check this post for all the ways to this!

Getting SyntaxError: Unexpected token < in JSON at position 0 when using fetch or JSON.parse. I will go over fixes for this!

How to fix SyntaxError Unexpected Token in JSON

Jan 18, 2023

Getting SyntaxError: Unexpected token < in JSON at position 0 when using fetch or JSON.parse. I will go over fixes for this!

Getting the DataTable warning of incorrect column count? Check this post to resolve it!

Fixing DataTables Warning Incorrect Column Count

Jan 17, 2023

Getting the DataTable warning of incorrect column count? Check this post to resolve it!

Getting CSS to work on DataTables pagination could be tricky. We can go over a few steps to resolve this.

Fixing DataTables Pagination CSS not working correctly

Jan 2, 2023

Getting CSS to work on DataTables pagination could be tricky. We can go over a few steps to resolve this.

In this post we go over seven examples on how to capitalize the first letter in JavaScript.

How to capitalize first letter in JavaScript

Dec 1, 2022

In this post we go over seven examples on how to capitalize the first letter in JavaScript.

The `setTimeout` function can come in handy for delaying execution. We go over few reasons why the settimeout function is not working - ranging from using parentheses to incorrect scope or this keyword.

Fix JavaScript setTimeout not working

Apr 15, 2022

The `setTimeout` function can come in handy for delaying execution. We go over few reasons why the settimeout function is not working - ranging from using parentheses to incorrect scope or this keyword.

The replaceWith function replaces a element with another. This post will go through basic and advanced examples of how to use the replaceWith function.

JavaScript replaceWith examples

Apr 10, 2022

The replaceWith function replaces a element with another. This post will go through basic and advanced examples of how to use the replaceWith function.

How to create a wave displacement WebGL effect

How to create a wave displacement WebGL effect

Jan 1, 2021

How to create a wave displacement WebGL effect

Follow cursor effect using Javascript, GSAP and CSS

How to make a follow cursor effect with JavaScript

Dec 29, 2020

Follow cursor effect using Javascript, GSAP and CSS

About

Hi, I'm Kentaro - a sofware engineer sharing my programming tips!

Projects

pagehippo.co Nocode landing page builder