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

@nikitasarkania

# Nikita Sarkania

@nikitasarkania · New Delhi, India · Joined April 2021

Software Developer

### [JavaScript Hoisting: The Magic Trick That Isn't Magic 🎩](https://nikitasarkania.hashnode.dev/javascript-hoisting-the-magic-trick-that-isn-t-magic?utm_source=hashnode&utm_medium=feed)

"Why does JavaScript print undefined instead of throwing an error?" If you've ever asked yourself this question, you've already encountered Hoisting. A Quick Challenge 🧠 Before reading any further,

5 min read · [nikitasarkania.hashnode.dev](https://nikitasarkania.hashnode.dev/javascript-hoisting-the-magic-trick-that-isn-t-magic?utm_source=hashnode&utm_medium=feed)

[Jul 15](https://hashnode.com/posts/javascript-hoisting-the-magic-trick-that-isn-t-magic/6a573691010087b19fa644b2)

### [UI Scaling – A Dev Diary on Something I Should’ve Looked Into Sooner](https://nikitasarkania.hashnode.dev/ui-scaling-a-dev-diary-on-something-i-shouldve-looked-into-sooner?utm_source=hashnode&utm_medium=feed)

Hey there 👋So here's a little behind-the-scenes moment from my dev life. I built this UI that looked great on my screen. Everything felt balanced — the layout, fonts, spacing, all of it. I was pretty happy with it. Then someone opened it on a screen...

3 min read · [nikitasarkania.hashnode.dev](https://nikitasarkania.hashnode.dev/ui-scaling-a-dev-diary-on-something-i-shouldve-looked-into-sooner?utm_source=hashnode&utm_medium=feed)

[Aug 26, 2025](https://hashnode.com/posts/ui-scaling-a-dev-diary-on-something-i-shouldve-looked-into-sooner/68ad4b2025610936734891d4)

### [Security Risks of Inline Event Handlers in React.js (And How to Avoid Them)](https://nikitasarkania.hashnode.dev/security-risks-of-inline-event-handlers-in-reactjs-and-how-to-avoid-them?utm_source=hashnode&utm_medium=feed)

If you’re a React.js developer, chances are you’ve dropped an inline event handler into your code without even thinking twice. It’s so easy to do! You might write something like this: <button onClick={() => alert('You clicked me!')}>Click Me</button>...

4 min read · [nikitasarkania.hashnode.dev](https://nikitasarkania.hashnode.dev/security-risks-of-inline-event-handlers-in-reactjs-and-how-to-avoid-them?utm_source=hashnode&utm_medium=feed)

[Oct 2, 2024](https://hashnode.com/posts/security-risks-of-inline-event-handlers-in-reactjs-and-how-to-avoid-them/66fd796ac446ebd7ccabf415)

### [Elements vs. Tags: A Friendly Guide](https://nikitasarkania.hashnode.dev/elements-vs-tags-a-friendly-guide?utm_source=hashnode&utm_medium=feed)

Ever wondered what the difference is between an element and a tag in HTML?Let's break it down in a way that's easy to understand. Imagine a House Think of a house. The house is like an element in HTML. It's the whole building. Inside the house, you h...

2 min read · [nikitasarkania.hashnode.dev](https://nikitasarkania.hashnode.dev/elements-vs-tags-a-friendly-guide?utm_source=hashnode&utm_medium=feed)

[Aug 30, 2024](https://hashnode.com/posts/elements-vs-tags-a-friendly-guide/66d1a9f154d7cbffd14ea11b)
