---
title: "Discussion on \"Boyle's law in JavaScript: why squeezing a gas to a quarter of its volume quadruples the pressure\" | Hashnode"
description: "Discussion on \"Boyle's law in JavaScript: why squeezing a gas to a quarter of its volume quadruples the pressure\". Boyle's law says that for a fixed mass of gas at constant temperature, pressure times volume stays constant: P1 V1 = P2 V2. Squeeze the volume down and the same gas molecules hit the walls more often,"
url: "https://hashnode.com/posts/boyle-s-law-in-javascript-why-squeezing-a-gas-to-a-quarter-of-its-volume-quadruples-the-pressure/6b0cfd44e18d0b81c5672e19"
---

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

Discussion

# [Boyle's law in JavaScript: why squeezing a gas to a quarter of its volume quadruples the pressure](https://practisci.hashnode.dev/boyle-s-law-in-javascript-why-squeezing-a-gas-to-a-quarter-of-its-volume-quadruples-the-pressure?utm_source=hashnode&utm_medium=feed)

Boyle's law says that for a fixed mass of gas at constant temperature, pressure times volume stays constant: P1 V1 = P2 V2. Squeeze the volume down and the same gas molecules hit the walls more often,

1d ago · 2 min read · practisci.hashnode.dev  
Read the article

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

## Written by

[Surendra Singh Kamboj](https://hashnode.com/@surendrasinghkamboj)

@surendrasinghkamboj

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
