javascript试题-请选择下面js代码的执行结果

    function checkAge(data) {
        if (data === {
            age: 18
        }) {
            console.log("You are an adult!");
        } else if (data == {
                age: 18
            }) {
            console.log("You are still an adult.");
        } else {
            console.log(`Hmm.. You don't have an age I guess`);
        }
    }

    checkAge({
        age: 18
    });

网友评论0