---
title: "Mohit Silori (@mohitsilori) | Hashnode"
description: "Mohit Silori (@mohitsilori) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@mohitsilori"
---

@mohitsilori

# Mohit Silori

@mohitsilori · Joined January 2024

### [Var vs Val in Kotlin](https://silori.hashnode.dev/var-vs-val-in-kotlin?utm_source=hashnode&utm_medium=feed)

In Kotlin, when we declare a variable and assign it a value, like : var x = 5 What happen behind the scene is, an object is created, having the value ( i.e. 5 ) you assigned to the variable ( i.e. x ). Then the variable hold the reference to the obje...

1 min read · [silori.hashnode.dev](https://silori.hashnode.dev/var-vs-val-in-kotlin?utm_source=hashnode&utm_medium=feed)

[Jan 12, 2024](https://hashnode.com/posts/var-vs-val-in-kotlin/65a16a0ddba249d67014cecd)
