---
title: "Discussion on \"You ever defined a constant with value `1 << 2`?\" | Hashnode"
description: "Discussion on \"You ever defined a constant with value `1 << 2`?\". In this article, we review a particular way of defining constants found in Ripple codebase. We will look at:\n\nWhat is Ripple?\n\nconstants.js file\n\nWhat is 1 << 1?\n\n\n\nWhat is Ripple?\nRipple is the elegant TypeScript UI framework, created by Dominic Gan..."
url: "https://hashnode.com/posts/you-ever-defined-a-constant-with-value-1-2/68b9b796b45b5ca7828caacb"
---

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

Discussion

# [You ever defined a constant with value \`1 << 2\`?](https://thinkthroo.com/blog/you-ever-defined-a-constant-with-value-1-2?utm_source=hashnode&utm_medium=feed)

In this article, we review a particular way of defining constants found in Ripple codebase. We will look at: What is Ripple? constants.js file What is 1 << 1? What is Ripple? Ripple is the elegant TypeScript UI framework, created by Dominic Gan...

Sep 4, 2025 · 1 min read · thinkthroo.com  
Read the article

-   [#bitshift](https://hashnode.com/tag/bitshift)
-   [#framework](https://hashnode.com/tag/framework)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#ripple](https://hashnode.com/tag/ripple)
-   [#open-source](https://hashnode.com/tag/open-source)
-   [#constants](https://hashnode.com/tag/constants)

## Written by

[Ramu Narasinga](https://hashnode.com/@ramunarasinga)

@ramunarasinga · India

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

I study large open-source projects and create content about their codebase architecture and best practices, sharing it through articles, videos.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
