As we know, variables are containers for storing information. The const statement is used for declaring a variable. Creating a variable is similar to declaring a variable.