From bc956aa2dcc868aa45817e211808fc2f64627faa Mon Sep 17 00:00:00 2001 From: Phuc Nguyen <186391026+phucfix@users.noreply.github.com> Date: Wed, 24 Sep 2025 10:40:37 +0700 Subject: [PATCH] Update hash_map_data_structure.md Add link to pure function explanation in README --- javascript/computer_science/hash_map_data_structure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/computer_science/hash_map_data_structure.md b/javascript/computer_science/hash_map_data_structure.md index 8af103d5361..2e596842b67 100644 --- a/javascript/computer_science/hash_map_data_structure.md +++ b/javascript/computer_science/hash_map_data_structure.md @@ -13,7 +13,7 @@ This section contains a general overview of topics that you will learn in this l ### What is a hash code? -Let's start by learning what it means to hash a value. Hashing involves taking an input in and generating a corresponding output. A hash function should be a pure function. Hashing the same input should always return the same hash code, and there should be no random generation component. For example, let's look at a hashing function that takes a name and gives us the first letter of that name: +Let's start by learning what it means to hash a value. Hashing involves taking an input in and generating a corresponding output. A hash function should be a [pure function](https://en.wikipedia.org/wiki/Pure_function). Hashing the same input should always return the same hash code, and there should be no random generation component. For example, let's look at a hashing function that takes a name and gives us the first letter of that name: ```javascript function hash(name) {