Good day. I\'m new to Type Script, using VSCode.
Getting following errors:
error TS2322: Type \'() => string\' is not assignable to type
This problem basically comes when your compiler gets failed to understand the difference between cast operator of the type string to Number.
you can use the Number object and pass your value to get the appropriate results for it by using Number(<<<<...Variable_Name......>>>>)