let data = 100;
console.log(`Data Type: ${typeof data}`) //"Data Type: number"
data += '';
console.log(`Data Type: ${typeof data}`) //"Data Type: string"
let data = "100";
console.log(`Data Type: ${typeof data}`) //"Data Type: string"
data *= 1;
console.log(`Data Type: ${typeof data}`) //"Data Type: number"
let data = 100;
console.log(`Data Type: ${typeof data}`) //"Data Type: number"
data = String(data);
console.log(`Data Type: ${typeof data}`) //"Data Type: string"
let data = "100";
console.log(`Data Type: ${typeof data}`) //"Data Type: string"
data = Number(data);
console.log(`Data Type: ${typeof data}`) //"Data Type: number"
let data = 100;
console.log(`Data Type: ${typeof data}`) //"Data Type: number"
data = toString(data);
console.log(`Data Type: ${typeof data}`) //"Data Type: string"
let data = "100";
console.log(`Data Type: ${typeof data}`) //"Data Type: string"
data = parseInt(data);
console.log(`Data Type: ${typeof data}`) //"Data Type: number"
π μ°Έκ³ ν μλ£
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt