---
title: "Discussion on \"Static vs. dynamic or loosely typed language.\" | Hashnode"
description: "Discussion on \"Static vs. dynamic or loosely typed language.\". Static Languages:\n\n\nIn static languages, once we define a variable and store a number value in it, we cannot assign another type of value to this variable.\ne.g.\n#include <iostream>\nusing namespace std;\n\nint main() {\n    int number = 5;\n    number = \"..."
url: "https://hashnode.com/posts/static-vs-dynamic-or-loosely-typed-language/6688b42cfc1579b05851f3e8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Static vs. dynamic or loosely typed language.](https://yashpurkar.hashnode.dev/static-vs-dynamic-or-loosely-typed-language?utm_source=hashnode&utm_medium=feed)

Static Languages: In static languages, once we define a variable and store a number value in it, we cannot assign another type of value to this variable. e.g. #include <iostream> using namespace std; int main() { int number = 5; number = "...

Jul 6, 2024 · 2 min read · yashpurkar.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Yash Purkar](https://hashnode.com/@YashPurkar)

@YashPurkar

  
[View profile](https://hashnode.com/@YashPurkar)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
