const Local Variables
Learn about const local variables.
We'll cover the following
Introduction to const
local variables
We can declare all our local variables that are not supposed to change their values as const
. Doing so can help future readers of the code (including ourselves) and the compiler perform some optimizations.
Get hands-on with 1200+ tech skills courses.