-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patherror-trial-with-createElement.js
44 lines (43 loc) · 1.06 KB
/
error-trial-with-createElement.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
var name = "ABC";
var className = "XYZ";
var heading = "Division heading";
var state = "Virginia";
var name1 = "Ulysses S. Grant";
var name2 = "Robert E. Lee";
var street = "Appomattox Court House";
var warType = "Civil War";
var facultyType = "English faculty";
$(document.body).append(
createElement('div', {class: "someclass"},
[
createElement('h3', {class: "heading"}, heading),
createElement('span', {class: "inner-span"},
[
'When ',
name1,
' and ',
name2,
' met in the parlor of a modest house at ',
street,
', ',
state,
',...a great chapter in American life came to a close.'
]
),
createElement('span', {class: "paragraph"},
[
'These men were bringing the ',
warType,
' to its virtual finish.'
]
),
createElement('span', {class: "paragraph"},
[
'Refer to Capital\'s Guide for Writing Research Papers and, especially, the ,
facultyType,
'\'s Suggestions for Writing Papers for Literature Courses for further help in handling quotations.'
]
)
]
)
);