About "SyntaxError: Unexpected end of JSON input" in JavaScriptYou might have encountered the error “Uncaught SyntaxError: Unexpected end of JSON input” when using JSON.parse(). ✋ Update: This post was originally published on my blog decodingweb.dev, where you can read the latest version for a 💯 user experienc...2 min read·lavary.hashnode.devFeb 6, 2023
Add commas to numbers in JavaScript (Explained with examples)This guide explores the three common ways to add commas to numbers in JavaScript. ✋ Update: This post was originally published on my blog decodingweb.dev, where you can read the latest version for a 💯 user experience. ~reza Displaying numbers – wh...4 min read·lavary.hashnode.devFeb 6, 2023
How to remove the last character from a string in PHPHow do you remove the last character from a string in PHP? Most web developers face it at one time or another; It can be a white space, a trailing slash in a HTTP URL, the last comma in a comma-separated list, or even a new line characters (\n). ✋ U...5 min read·lavary.hashnode.devFeb 6, 2023
About "TypeError: map is not a function" in JavaScriptThe error “TypeError: object.map is not a function” occurs when you call the map() method on a non-array object in JavaScript. ✋ Update: This post was originally published on my blog decodingweb.dev, where you can read the latest version for a 💯 us...6 min read·lavary.hashnode.devFeb 6, 2023
Cannot find module error in Node.js (Fixed)“Error: cannot find module” occurs when you try to load a non-existant module in Node – Either via ESM (ECMAScript Modules) or CommonJS module systems. ✋ Update: This post was originally published on my blog decodingweb.dev, where you can read the l...6 min read·lavary.hashnode.devFeb 6, 2023