面试题答案
一键面试function combineAndMultiply(str: string, num: number): { combined: string; product: number } {
const combined = str + num;
const product = str.length * num;
return { combined, product };
}
function combineAndMultiply(str: string, num: number): { combined: string; product: number } {
const combined = str + num;
const product = str.length * num;
return { combined, product };
}