---
title: "Shivam Dixit (@Shivamdixit) | Hashnode"
description: "Codix Sansaar. Read the latest articles by Shivam Dixit on Hashnode."
url: "https://hashnode.com/@Shivamdixit"
---

@Shivamdixit

# Shivam Dixit

@Shivamdixit · Joined December 2022

Codix Sansaar

## Comments

[What happen if we just assign value of any identifier in any function without declare it for sure it not gives error My Doubt : I think I will get consider as in Global Scope even it is in function but why when I accessing it in vscode it not runs function shiv (){ MyId = 45; var MyLoc = 67; … } Console.log(MyLoc) //Error ✅ Console.log(MyId) // Reference (Error) ❌❓❓](https://hashnode.com/posts/a-beginners-guide-to-javascript-part-1/63add767bb469d2badb6dc1a/comment/63ae438dbb6616386d7937f0)

Comment · Article · Dec 30, 2022 · [A Beginner's Guide to JavaScript Part 1](https://hashnode.com/posts/a-beginners-guide-to-javascript-part-1/63add767bb469d2badb6dc1a)
