Numéro à chaîne TypeScript
var num = new Number(10);
console.log(num.toString());
console.log(num.toString(2));
console.log(num.toString(8));
Aggressive Addax
var num = new Number(10);
console.log(num.toString());
console.log(num.toString(2));
console.log(num.toString(8));
String(my_non_string)
var variableName:string = 'John Smith';