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...Feb 6, 2023 · 2 min readlavary.hashnode.dev
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...Feb 6, 2023 · 4 min readlavary.hashnode.dev
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...Feb 6, 2023 · 5 min readlavary.hashnode.dev
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...Feb 6, 2023 · 6 min readlavary.hashnode.dev
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...Feb 6, 2023 · 6 min readlavary.hashnode.dev