how to declare const value in class typescript code example Example: create constant in class typescript private static readonly myPrivateConstant: number = 5;