📜  4.2.类型转换¶ - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:37.979000             🧑  作者: Mango

代码示例3
/*The Number function can take a string and turn it into an integer. 
Let us see this in action:*/

console.log(Number("2345"));
console.log(typeof Number("2345"))
console.log(Number(17));

//2345
//number
//17