const myAge: number = 42;
      
      Typescript language logo

      Number variable

      Codiga's TypeScript Recipes

      All numbers in TypeScript are floating-point values. These floating-point numbers get the type number. In addition to hexadecimal and decimal literals, TypeScript also supports binary and octal literals introduced in ECMAScript 2015.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.