Hello! I am Codemzy and I love to code. JavaScript is my favourite flavour. I blog about coding, software and my projects.
Here's a JavaScript function I built to create a random 4-digit OTP code with leading zeros. And how I extended it to create shorter and longer codes too!
Written by Codemzy in JavaScript on July 3rd, 2024
When you use the JavaScript Fetch API, `response.body` might not work like you hoped it would. So if you run into errors like "Cannot read properties of undefined (reading 'body')", this blog post will help you fix it!
Written by Codemzy in JavaScript on April 11th, 2024
You can access response headers in axios from the response per request, or by adding an interceptor to all requests. If the headers are missing or undefined, you might need to fix your CORS settings.
Written by Codemzy in JavaScript on January 31st, 2024