Добавьте это
let expression = `${num1} + ${num2} = ${sum}`;
alert(`User ввел ${num1} и ${num2} :
${expression}
`);
{"page":10,"total":1,"value":500"},"types":[{"name":"fruit"}]
const response = {"page":10,"total":1,"value":500,"types":[{"name":"fruit"}]};
const type = response.types; // [{"name":"fruit"}]