Closed xtrmstep closed 5 years ago
For this case `
let str = "1234"; let arr = ["1","2","3","4"]; let sizeStr = sizeof(str); let sizeArr = sizeof(arr); console.log(`size str: ${sizeStr} bytes`); console.log(`size arr: ${sizeArr} bytes`);
` Values of sizeStr and sizeArr are different (8 vs 16). They should be equal.
For this case `
` Values of sizeStr and sizeArr are different (8 vs 16). They should be equal.