---
title: "Reza Lavarian (@lavary) | Hashnode"
description: "Software Developer. Read the latest articles by Reza Lavarian on Hashnode."
url: "https://hashnode.com/@lavary"
---

@lavary

# Reza Lavarian

@lavary · Portugal · Joined March 2021

Software Developer

[Website](https://www.skillupp.tech/)

### [About "SyntaxError: Unexpected end of JSON input" in JavaScript](https://lavary.hashnode.dev/about-syntaxerror-unexpected-end-of-json-input-in-javascript?utm_source=hashnode&utm_medium=feed)

You 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.dev](https://lavary.hashnode.dev/about-syntaxerror-unexpected-end-of-json-input-in-javascript?utm_source=hashnode&utm_medium=feed)

[Feb 6, 2023](https://hashnode.com/posts/about-syntaxerror-unexpected-end-of-json-input-in-javascript/63e17c17514c344f7b53b64f)

### [Add commas to numbers in JavaScript (Explained with examples)](https://lavary.hashnode.dev/add-commas-to-numbers-in-javascript-explained-with-examples?utm_source=hashnode&utm_medium=feed)

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.dev](https://lavary.hashnode.dev/add-commas-to-numbers-in-javascript-explained-with-examples?utm_source=hashnode&utm_medium=feed)

[Feb 6, 2023](https://hashnode.com/posts/add-commas-to-numbers-in-javascript-explained-with-examples/63e17bde8eab7801476c6ab9)

### [How to remove the last character from a string in PHP](https://lavary.hashnode.dev/how-to-remove-the-last-character-from-a-string-in-php?utm_source=hashnode&utm_medium=feed)

How 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.dev](https://lavary.hashnode.dev/how-to-remove-the-last-character-from-a-string-in-php?utm_source=hashnode&utm_medium=feed)

[Feb 6, 2023](https://hashnode.com/posts/how-to-remove-the-last-character-from-a-string-in-php/63e17bad3bbf0847471f84bd)

### [About "TypeError: map is not a function" in JavaScript](https://lavary.hashnode.dev/about-typeerror-map-is-not-a-function-in-javascript?utm_source=hashnode&utm_medium=feed)

The 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.dev](https://lavary.hashnode.dev/about-typeerror-map-is-not-a-function-in-javascript?utm_source=hashnode&utm_medium=feed)

[Feb 6, 2023](https://hashnode.com/posts/about-typeerror-map-is-not-a-function-in-javascript/63e17b78b4bb4042283c042f)

### [Cannot find module error in Node.js (Fixed)](https://lavary.hashnode.dev/cannot-find-module-error-in-nodejs-fixed?utm_source=hashnode&utm_medium=feed)

“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.dev](https://lavary.hashnode.dev/cannot-find-module-error-in-nodejs-fixed?utm_source=hashnode&utm_medium=feed)

[Feb 6, 2023](https://hashnode.com/posts/cannot-find-module-error-in-nodejs-fixed/63e17b2294f99578f80698e0)
