-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
93 lines (61 loc) · 2.96 KB
/
main.js
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
var ClozeCard = require("./ClozeCard.js");
var BasicCard = require("./BasicCard.js");
console.log("===============================================================================");
var basic1 = new BasicCard(
"What event occurs when a user clicks on an html element","onclick");
console.log(basic1.front);
console.log(basic1.back);
console.log("===============================================================================");
var basic2 = new BasicCard(
"This is a cross- platform JavaScript library designed to simplify the client-side scripting of HTML", "jquery")
console.log(basic2.front);
console.log(basic2.back);
console.log("===============================================================================");
var basic3 = new BasicCard(
"JavaScript runtime built on Chrome's V8 JavaScript engine", "node.js");
console.log(basic3.front);
console.log(basic3.back);
console.log("===============================================================================");
var basic4 = new BasicCard(
"Where does node.js allow you to run JavaScript", "server");
console.log(basic4.front);
console.log(basic4.back);
console.log("===============================================================================");
var basic5 = new BasicCard(
"Skill in using search engines (especially Google) to quickly find useful information online", "Goodlefu");
console.log(basic5.front);
console.log(basic5.back);
console.log("===============================================================================");
var cloze1 = new ClozeCard(
"Our JavaScript goes inside of our script tag", "script");
console.log(cloze1.partial);
console.log(cloze1.cloze);
console.log(cloze1.fullText);
console.log("===============================================================================");
var cloze2 = new ClozeCard(
"The correct place to inser JavaScript is the head or body", "body")
console.log(cloze2.partial);
console.log(cloze2.cloze);
console.log(cloze2.fullText);
console.log("===============================================================================");
var cloze3 = new ClozeCard(
"script src='xxx.js'","src");
console.log(cloze3.partial)
console.log(cloze3.cloze);
console.log(cloze3.fullText);
console.log("===============================================================================");
var cloze4 = new ClozeCard(
"In JavaScript we use getElementById, in jquery we use $('#')", "jquery");
console.log(cloze4.partial);
console.log(cloze4.cloze);
console.log(cloze4.fullText);
console.log("===============================================================================");
var cloze5 = new ClozeCard(
"User input is accessed in node.js terminal through process.argv", "process.argv");
console.log(cloze5.partial)
console.log(cloze5.cloze);
console.log(cloze5.fullText);
console.log("===============================================================================");
var brokenCloze = new ClozeCard(
"This doesn't work","oooops")
console.log(brokenCloze.partial);