Check out example codes for "creating constants in rust". It will help you in understanding the concepts better.

Code Example 1

// Globals are declared outside all other scopes.
static LANGUAGE: &str = "Rust";
const THRESHOLD: i32 = 10;

Learn ReactJs, React Native from akashmittal.com