我正在尝试运行此代码以根据某些条件打印一个值,但它仅打印一个值。这是代码:
let instagramlikes;
let sitetraffic;
let dailytraffic;
function clientwidgets(x) {
if (x === instagramlikes) {
console.log("This is A");
} else if (x === sitetraffic) {
console.log("This is B");
} else if (x === dailytraffic) {
console.log("This is C")
}
};
console.log(clientwidgets(instagramlikes));
console.log(clientwidgets(sitetraffic));
console.log(clientwidgets(dailytraffic));
收到一只叮咚
当年话下
相关分类