my arrow functin is not working truly , Why?

Viewed 28

everyone , i traydi create a arrow function but its not working in my way

console.log(cevabiKontrolEt("c"); //Ture //resalt

console.log(cevabiKontrolEtme("c"); //False //resalt

what is the different between them

Blockquote

let soru5={
    soruMetni: "hanig soru jaavadan gelir",
    cevapSecenekleri: {
        a: "node.",
        b: "banbası",
        c: "atası"
    },
    dogruCevap: "c",
    cevabiKontrolEt :function(cevap) { return cevap === this.dogruCevap; },
    cevabiKontrolEtme :(cevap) =>   cevap === this.dogruCevap 
    
 
}
console.log(cevabiKontrolEt("c"); //Ture //resalt
console.log(cevabiKontrolEtme("c"); //False //resalt
0 Answers
Related