-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanguage.js
More file actions
39 lines (30 loc) · 950 Bytes
/
Copy pathlanguage.js
File metadata and controls
39 lines (30 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var correct=0;
var firstQuestion= prompt("Which language is created for markup? ");
if(firstQuestion.toUpperCase==="HTML"){
correct+=1;
}
var secondQuestion= prompt("Which language is made for designing the webpages?");
if(secondQuestion.toUpperCase==="CSS"){
correct+=1;
}
var thirdQuestion= prompt("Which language is using for making interactive webpages?");
if (thirdQuestion.toUpperCase==="JAVASCRIPT"){
correct+=1;
}
var fourthQuestion=prompt("Which language known by the snake name?");
if (fourthQuestion.toUpperCase==="PYTHON"){
correct+=1;
}
var fifthQuestion= prompt("Which language is known as the basic language?");
if (fifthQuestion.toUpperCase==="C"){
correct+=1;
}
if(correct===5){
document.write("Congrats you won gold coin!");
}
if (correct >= 3){
document.write("Congrats you won silver coin! ");
}
if(correct>= 1){
document.write("Congrats you won bronze coin! ");
}