---
title: "Discussion on \"JavaScript is Crazy - Part 2\" | Hashnode"
description: "Discussion on \"JavaScript is Crazy - Part 2\". Hello Folks 👋\nWhat’s up friends, this is SnowBit here. I am a young passionate and self-taught developer and have an intention to become a successful developer.\nToday, I am here again with a crazy thing in JavaScript.\nSo, let’s get started.\nconsole...."
url: "https://hashnode.com/posts/javascript-is-crazy-part-2/61ef80f8c99aed184e7284af"
---

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

Discussion

# [JavaScript is Crazy - Part 2](https://codewithsnowbit.hashnode.dev/javascript-is-crazy-part-2?utm_source=hashnode&utm_medium=feed)

Hello Folks 👋 What’s up friends, this is SnowBit here. I am a young passionate and self-taught developer and have an intention to become a successful developer. Today, I am here again with a crazy thing in JavaScript. So, let’s get started. console....

Jan 25, 2022 · 2 min read · codewithsnowbit.hashnode.dev  
Read the article

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

## Written by

[Dhairya Shah](https://hashnode.com/@codewithsnowbit)

@codewithsnowbit

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

Frontend Web Developer | Technical Writer

I am 17 years old and a young passionate and self-taught frontend web developer and have an intention to become a successful developer. I usually write about JavaScript and Web Development and share some tips in the articles.

## Responses 1

Markdown supported · ⌘↵ to post

[TheSudarsanDev](https://hashnode.com/@TheSudarsanDev)

[Jan 25, 2022](https://hashnode.com/posts/javascript-is-crazy-part-2/61ef80f8c99aed184e7284af/comment/61ef8e92e247b2151e61dc1a)

The reason behind why 0.1 + 0.2 == 0.3 is false because computer uses base 2 floating point numbers. And when it converts it into human readable base 10 floating point numbers, such errors happen.

Another example error is 0.1 \* 0.1 == 0.01

[Dhairya Shah](https://hashnode.com/@codewithsnowbit)

[Jan 25, 2022](https://hashnode.com/posts/javascript-is-crazy-part-2/61ef80f8c99aed184e7284af/comment/61ef8e92e247b2151e61dc1a#reply-61ef8ee5e247b2151e61dc3c)

Thank you for explaining!
