# 习题三
# 1. 选择以下代码输出值
//counter.js
let counter = 10;
export default counter;
//index.js
import myCounter from "./counter";
myCounter += 1;
console.log(myCounter);
# 2. 选择以下代码输出值
function getInfo(x, y, z) {
console.log(x);
console.log(y);
console.log(z);
}
const person = "Lydia";
const age = 21;
getInfo`${person} is ${age} years old`;
# 3. 选择以下代码输出值
var a = { n: 1 };
var b = a;
a.x = a = { n: 2 };
console.log(a.x);
console.log(b.x);