“Const” keyword is used for making an entity constant. We cannot modify the value later in the code. Value assigning is always mandatory to constant variables. “readonly” variable value can be changed during runtime and value to readonly variables can be assigned in the constructor or at the time of declaration.
“Const” keyword is used for making an entity constant. We cannot modify the value later in the code. Value assigning is always mandatory to constant variables.
need an explanation for this answer? contact us directly to get an explanation for this answer“readonly” variable value can be changed during runtime and value to readonly variables can be assigned in the constructor or at the time of declaration.