-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoru.js
16 lines (14 loc) · 794 Bytes
/
soru.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function Soru(soruMetni, cevapSecenekleri, dogruCevap) {
this.soruMetni = soruMetni;
this.cevapSecenekleri = cevapSecenekleri;
this.dogruCevap = dogruCevap;
}
Soru.prototype.cevabiKontrolEt = function(cevap) {
return cevap === this.dogruCevap
}
let sorular = [
new Soru("1-Hangisi javascript paket yönetim uygulasıdır?", { a: "Node.js", b: "Typescript", c: "Npm" , d: "Nuget" }, "c"),
new Soru("2-Hangisi frontend kapsamında değerlendirilmez?", { a: "css", b: "html", c: "javascipt", d: "sql" }, "d"),
new Soru("3-Hangisi backend kapsamında değerlendirilir?", { a: "node.js", b: "typescript", c: "angular", d: "react" }, "a"),
new Soru("4-Hangisi javascript programlama dilini kullanmaz?", { a: "react", b: "angular", c: "vuejs", d: "asp.net" }, "d")
];