local scope const javascript code example Example: const in javascript const value = 10; const constant = value;