const
declaration defines named values that look syntactically like variables but whose value is constant.Instead of the var
keyword, we use the const
keyword.A value must be assigned while declaring constants.Constants only exists during compile time!const
keyword.iota
can be used to create enumerated constants. It is also called as constant generator.