---
title: "mahi samia (@samyscode) | Hashnode"
description: "Backend developer with passion for the Frontend world, Follow me on Instagram for more! (@samyscode)). Read the latest articles by mahi samia on Hashnode."
url: "https://hashnode.com/@samyscode"
---

@samyscode

# mahi samia

@samyscode · Joined September 2023

Backend developer with passion for the Frontend world, Follow me on Instagram for more! (@samyscode))

[Website](https://samysportfolio.netlify.app/)

### [𝐔𝐧𝐝𝐞𝐫𝐬𝐭𝐚𝐧𝐝𝐢𝐧𝐠 𝐩𝐫𝐨𝐭𝐨𝐭𝐲𝐩𝐚𝐥 𝐢𝐧𝐡𝐞𝐫𝐢𝐭𝐚𝐧𝐜𝐞](https://samyscode.hashnode.dev/prototype-inheritance?utm_source=hashnode&utm_medium=feed)

as developers we deal with objects most of the time, but have you ever wondered how JavaScript objects can access a treasure trove of built-in methods, seemingly by magic? Let's demystify it! Take this as an example: 𝒄𝒐𝒏𝒔𝒕 𝒖𝒔𝒆𝒓 = { 𝒏𝒂𝒎�...

2 min read · [samyscode.hashnode.dev](https://samyscode.hashnode.dev/prototype-inheritance?utm_source=hashnode&utm_medium=feed)

[Oct 17, 2023](https://hashnode.com/posts/prototype-inheritance/652e8db8f7c405308e7367ea)

### [Demystifying Lexical Scope in JavaScript](https://samyscode.hashnode.dev/demystifying-lexical-scope-in-javascript?utm_source=hashnode&utm_medium=feed)

Scope is a fancy word for what data is available to me at any line of code Lexical scope, in simple terms, is all about where you declare your functions. This choice determines which data a function can access when it's executed To illustrate this co...

2 min read · [samyscode.hashnode.dev](https://samyscode.hashnode.dev/demystifying-lexical-scope-in-javascript?utm_source=hashnode&utm_medium=feed)

[Sep 14, 2023](https://hashnode.com/posts/demystifying-lexical-scope-in-javascript/650359e6244ed06018ba08f7)

### [Unraveling the Magic of Closures in JavaScript](https://samyscode.hashnode.dev/unraveling-the-magic-of-closures-in-javascript?utm_source=hashnode&utm_medium=feed)

In the world of JavaScript, each time we run a function, it creates a fresh local memory (new execution context). It doesn't hold onto memories of previous runs. Once the function finishes executing, its local memory is wiped clean, leaving only the ...

2 min read · [samyscode.hashnode.dev](https://samyscode.hashnode.dev/unraveling-the-magic-of-closures-in-javascript?utm_source=hashnode&utm_medium=feed)

[Sep 14, 2023](https://hashnode.com/posts/unraveling-the-magic-of-closures-in-javascript/65034705e670ae6fa7b82fe3)

### [Demystifying JavaScript's Behavior with Primitives and Objects](https://samyscode.hashnode.dev/demystifying-javascripts-behavior-with-primitives-and-objects?utm_source=hashnode&utm_medium=feed)

xplore the fascinating world of JavaScript's behavior with primitives and objects. Learn how auto-boxing works, why primitives sometimes act like objects, a

2 min read · [samyscode.hashnode.dev](https://samyscode.hashnode.dev/demystifying-javascripts-behavior-with-primitives-and-objects?utm_source=hashnode&utm_medium=feed)

[Sep 6, 2023](https://hashnode.com/posts/demystifying-javascripts-behavior-with-primitives-and-objects/64f8e188de8bc5800b996896)

### [Create A REST API With JSON Server in minutes](https://samyscode.hashnode.dev/create-a-rest-api-with-json-server-in-minutes?utm_source=hashnode&utm_medium=feed)

a quick guide on how to create a rest api with json-server

2 min read · [samyscode.hashnode.dev](https://samyscode.hashnode.dev/create-a-rest-api-with-json-server-in-minutes?utm_source=hashnode&utm_medium=feed)

[Sep 5, 2023](https://hashnode.com/posts/create-a-rest-api-with-json-server-in-minutes/64f6e96bb39ce30d96af06e5)
